f1-library
v1.6.0
Published
A javascript project to get the information about drivers, teams and standings of formula 1 🏎
Downloads
21
Maintainers
Readme
F1 information node library
A javascript project to get the information about drivers, teams and standings of formula 1 🏎
- TypeScript 4
- Linting with typescript-eslint (tslint is deprecated)
- Testing with Jest (and ts-jest)
- Continuous integration (GitHub Actions
Installation
# Install the package
yarn install
#or
npm install
...
Example
import { getDrivers } from 'f1-library';
async () => {
const drivers = await getDrivers;
}()
Methods
getDrivers()
Return a Promise with the drivers of F1.
getTeams()
Return a Promise with the teams of F1.
getStandings({ year, mode }))
Return a Promise with the standings of the year and mode ('drivers' or 'teams') of F1.
getSchedule({ year })
Return a Promise with the schedule of a season of F1.