@crxn307/api-sports
v1.2.2
Published
TypeScript client for API-SPORTS — fully typed, ESM-only, zero runtime dependencies
Maintainers
Readme
api-sports
TypeScript client for API-SPORTS. Fully typed, ESM-only, zero runtime dependencies.
Installation
pnpm add api-sportsRequires Node.js ≥ 18 (uses native
fetch).
Quick start
import { apiSports } from "@crxn307/api-sports"
const client = apiSports({ apiKey: "your-api-key" })
const { response } = await client.football.getFixtures({
league: 39,
season: 2024,
})Documentation
Development
pnpm build # build dist/
pnpm typecheck # tsc type check
pnpm test # vitest
pnpm lint # biome lint
pnpm check # biome lint + formatLicense
MIT
