4.0.7 • Published 2 years ago

fantasypl v4.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Fantasy Premier League API

Installation

Npm

npm install fantasypl

Yarn

yarn add fantasypl

Pnpm

pnpm add fantasypl

Usage

A basic example to fetch all data from the core endpoint. The returned data is a typed object of type Bootstrap.

import { fetchBootstrap } from "fantasypl"

const fetchData = async () => {
  const data = await fetchBootstrap()

  return data;
}

fetchData()

Notes

Forked from jeppe-smith/fpl-api. Most of the implementation remains the same but I will be updating the package for my requirements.

4.0.7

2 years ago

4.0.6

2 years ago

4.0.5

2 years ago

4.0.4

2 years ago