4.0.7 • Published 2 years ago
fantasypl v4.0.7
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.