iracing-node-api
v1.0.3
Published
A nodejs wrapper for Iracing's data api.
Downloads
7
Readme
Iracing NodeJS Api
Summary
A wrapper for Iracing's data
api written in typescript.
Getting Started
npm install iracing-node-api
import IracingClient from 'iracing-node-api';
const client = new IRacingClient('youriracingemail', 'youriracingpassword');
Note: Intializing the instance will automatically start the login flow and authenticate using your credentials.
Examples:
Getting Car Data
import IracingClient from 'iracing-node-api';
const client = new IRacingClient('youriracingemail', 'youriracingpassword');
const carData = await client.getCarData();
Getting Track Data
import IracingClient from 'iracing-node-api';
const client = new IRacingClient('youriracingemail', 'youriracingpassword');
const carData = await client.getTrackData();
Roadmap
- Add all available endpoints from the iracing data api
- Add retry logic for rate-limited requests
- Add the ability to respond with specific data points given a parameter ex:
carId 123 -> getCarData()