Skip to content

A modern, type-safe TypeScript wrapper for the Fantasy Premier League (FPL) API.

License

Notifications You must be signed in to change notification settings

pmc-a/fpl-fetch

Repository files navigation

fpl-fetch · GitHub license · Run Unit Tests · npm version · Downloads · PRs Welcome

A modern, type-safe TypeScript wrapper for the Fantasy Premier League (FPL) API.

Features

  • 🏆 Simple API: Fetch players, teams, fixtures, and more with minimal code.
  • ⚡ TypeScript Support: Fully typed for a great developer experience.
  • 🔄 Async/Await: Modern asynchronous API.
  • 🛡️ Robust Error Handling: Clear and consistent error messages.
  • 📦 Lightweight: No unnecessary dependencies.

Installation

npm install fpl-fetch

Basic Usage

import FplFetch from 'fpl-fetch';

const client = new FplFetch();

async function main() {
    const player = await client.getPlayer(328);
    console.log(player);
}

main().catch(console.error)

About

A modern, type-safe TypeScript wrapper for the Fantasy Premier League (FPL) API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published