iracing-data-api
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

iRacing data API

Installation

npm install iracing-data-api
yarn add iracing-data-api
pnpm i iracing-data-api
bun i iracing-data-api

Basic Usage

import IracingAPI from "iracing-data-api"

const irUser = "FOO@gmail.com"
const irPass = "BAR"

const main = async () => {
  const ir = new IracingAPI()

  // First you have to login to iracing using your credentials to be able to use the API.
  await ir.login(irUser, irPass)

  // Now you can use any endpoint, e.g. getCars
  const cars = await ir.car.getCars()

  console.log(cars)
}

main().then(() => "Done")

Package Sidebar

Install

npm i iracing-data-api

Weekly Downloads

0

Version

0.1.3

License

none

Unpacked Size

229 kB

Total Files

8

Last publish

Collaborators

  • rxthorn