@robotevents/client
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

@robotevents/client

A Robot Events API client.

Installing

Node.js 16.0.0 or newer is required.

npm install @robotevents/client
yarn add @robotevents/client
pnpm add @robotevents/client

Example usage

Obtain a team from the Robot Events API:

import {ProgramId, RobotEventsClient} from '@robotevents/client';

const robotEventsClient = new RobotEventsClient({
  token: process.env.ROBOT_EVENTS_TOKEN,
});

const teams = await robotEventsClient.teams
  .findAll(_ => _.programIds(ProgramId.VRC).numbers('24C'))
  .toArray();

if (teams.length) {
  console.log(teams[0]);
} else {
  console.log('Team not found');
}

Package Sidebar

Install

npm i @robotevents/client

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

241 kB

Total Files

104

Last publish

Collaborators

  • jtkiesel