Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fpl-api-node

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fpl-api-node

A simple node wrapper for the Fantasy Premier League (fantasy.premierleague.com) restful web api

  • 1.0.13
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

fpl-api-node (Season 2017-18)

npm npm

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) => {

  // do something with our data
  console.log(data);

}).catch((err) => {
  // something went wrong
});

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:

Keywords

FAQs

Package last updated on 13 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc