challonge-node

1.0.2 • Public • Published

challonge-node

A node.js library for Challonge API

Requirements

Tested with:

  • Node 6.8.1
  • npm 2.15.1

Installation

npm install --save challonge-node

Usage

See tests for full usage

Setup

var ChallongeAPI = require('challonge-node');
var challonge = ChallongeAPI.withAPIKey(<API_KEY>);

or

import ChallongeAPI from 'challonge-node';
const challonge = ChallongeAPI.withAPIKey(<API_KEY>);

Create tournament

challonge.tournaments.create(<NAME>, <URL>).then(function(tournament) {
  console.log(tournament.id);
}

Testing

npm run test

License

challonge-node is available under the MIT license. See the LICENSE file for more info.

Dependents (0)

Package Sidebar

Install

npm i challonge-node

Weekly Downloads

6

Version

1.0.2

License

MIT

Last publish

Collaborators

  • alanhhwong