Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

fantasy-premier-league

0.4.0 • Public • Published

Fantasy premier league

Call the English fantasy premier league and get a list of players or a list of teams, built with typescript.

If you install the types you can also get autocompletion in some IDEs or editors like VScode

Install

npm i --save fantasy-premier-league

Usage

There is only one function for Teams and Players which is listAll() which takes no arguments and returns an untyped list.

const {Teams, Players} = require('fantasy-premier-league');
new Teams().listAll()
           .then(console.log); // Array of teams
 
new Players().listAll()
             .then(console.log); // Array of players
 

Install

npm i fantasy-premier-league

DownloadsWeekly Downloads

3

Version

0.4.0

License

MIT

Last publish

Collaborators

  • avatar