ftc-npm

1.0.2-MOVED • Public • Published

The first-npm package is mainly for ultilizing the FIRST Robotics API in a Node.JS environment.

Follow @javathehutts on Twitter for important announcements.

Installation

To install prebuilt first-npm binaries, use npm:

npm install first-npm --save

Programmatic usage

If you require first-npm inside your Node Application this to spawn an first-npm reference from inside your Node scripts:

//Spawn the first-npm Node module within your Node script
const First = require("first-npm");

//Used to login to the FIRST Robotics API (More Information Below)
const ftc = new First("username", "API-Key");

//Grab the information associated with the team #14725 (Java The Hutts)
ftc.getTeam(14725).then((response) => {
  console.log(response);
});

Get your FIRST Robotics username and API-Key from the FTC and FRC API request pages respectively

License

MIT

When using the first-npm or other GitHub logos, be sure to follow the GitHub logo guidelines.

Readme

Keywords

none

Package Sidebar

Install

npm i ftc-npm

Weekly Downloads

4

Version

1.0.2-MOVED

License

MIT

Unpacked Size

484 kB

Total Files

4

Last publish

Collaborators

  • jthftc