f1-library
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

F1 information node library

Build and test status

A javascript project to get the information about drivers, teams and standings of formula 1 🏎

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.

Package Sidebar

Install

npm i f1-library

Weekly Downloads

2

Version

1.6.0

License

MIT

Unpacked Size

32.9 kB

Total Files

44

Last publish

Collaborators

  • imrodriguez