A node.js library for Challonge API
Tested with:
- Node 6.8.1
- npm 2.15.1
npm install --save challonge-node
See tests for full usage
var ChallongeAPI = require('challonge-node');
var challonge = ChallongeAPI.withAPIKey(<API_KEY>);
or
import ChallongeAPI from 'challonge-node';
const challonge = ChallongeAPI.withAPIKey(<API_KEY>);
challonge.tournaments.create(<NAME>, <URL>).then(function(tournament) {
console.log(tournament.id);
}
npm run test
challonge-node is available under the MIT license. See the LICENSE file for more info.