New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

iracing-data-api

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iracing-data-api

Javascript client for iracing API

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
2
Maintainers
0
Weekly downloads
 
Created
Source

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")

Keywords

iracing

FAQs

Package last updated on 16 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts