A modern, type-safe TypeScript wrapper for the Fantasy Premier League (FPL) API.
- 🏆 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.
npm install fpl-fetch
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)