iracing-data-api
v0.1.3
Published
Javascript client for iracing API
Downloads
7
Maintainers
Readme
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 = "[email protected]"
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")