0.4.0 • Published 7 years ago

fantasy-premier-league v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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
0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago