0.4.1 • Published 7 years ago

node-hotslogs v0.4.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

npm version

node-hotslogs

Node-wrapper for HOTSLogs API (with some sugar)

Install

npm install node-hotslogs

Usage

hotslogs = require('node-hotslogs');

hotslogs.getHeroes().then(function(heroes){...});
hotslogs.getMaps().then(function(maps){...});
hotslogs.getEvents().then(function(events){...});
hotslogs.getEvent(1001).then(function(event){...});
hotslogs.getEventTrees().then(function(eventTrees){...});
hotslogs.getPlayer(1).then(function(player){...});
hotslogs.getPlayer(hotslogs.REGIONS.EU,"battletag#0000").then(function(player){...});

Contribute

Feel free to add sugar and/or help me keep this package up to date with the Hotslogs API! Don't forget to add unit tests for all of your additions and please be consistent with regards to the code-style of the project.

Tests

Run tests with

npm test

Note: Tests may timeout during peak hours as they rely on the speed of the Hotslogs API!

TODO

  • Better documentation
    • Examples of the returned data?
  • Rename some event fields
    • Possibly an option to getEvent?

License

MIT

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago