Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 666 Bytes

File metadata and controls

30 lines (21 loc) · 666 Bytes

speedcontrol-util

Node.js package with utilities to help you code NodeCG bundles that interface with the nodecg-speedcontrol bundle.

Install

$ npm install speedcontrol-util

Example

JavaScript

const SpeedcontrolUtil = require('speedcontrol-util');
module.exports = nodecg => {
  const sc = new SpeedcontrolUtil(nodecg);
  const activeRun = sc.runDataActiveRun; // instance of the replicant
};

TypeScript

import SpeedcontrolUtil from 'speedcontrol-util';
export = (nodecg: NodeCG) => {
  const sc = new SpeedcontrolUtil(nodecg);
  const activeRun = sc.runDataActiveRun; // instance of the replicant
};