fpl-api-node (Season 2017-18)

A strongly typed node wrapper for the Fantasy Premier League (fantasy.premierleague.com) restful web api.
It's job is a simple one - to fetch and return data that maps to the available end-points.
To avoid topics such as Cross-Origin and Content Security Policy this wrapper should be consumed in a node server-side context.
Getting Started
npm install fpl-api-node --save
Typescript
import * as fplapi from 'fpl-api-node';
Javascript
const fplapi = require('fpl-api-node');
Example
fplapi.getEntry(123456).then((data) => {
console.log(data);
}).catch((err) => {
});
API
Read the API documentation for available methods.
Usage
You can use the package in a number of ways for example to create a restful api on a web app using expressjs.
The package uses axios under the hood. If using outside of typescript and don't care about types you may prefer to fetch the endpoints directly rather than use this wrapper.
The Available end-points are: