Package Exports
- game-data
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (game-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
game-data
Player Data for Rocket League, Overwatch, Counter-Strike: Global Offensive
Rocket League
const core = require('game-data');
core.RLoverallStats(YOUR_API_KEY, 'shadowinsaanity', '2').then(data => {
console.log(datadisplayName); // shadowinsaanity
}).catch(() => {
console.log('RIP');
});
- Possible platforms: 1-steam, 2-psn, 3-xbox
Overwatch
const core = require('game-data');
core.OWoverallStats('Calvin-1337', 'competitive', 'na').then(data => {
console.log(data.tier); // grandmaster
}).catch(() => {
console.log('I could not find a player with that name.');
});
core.OWgameStats().then(() => {});
core.OWaverageStats().then(() => {});
// Hero stats TO COME
core.OWheroStats('Calvin-1337', 'competitive', 'us', 'zenyatta', 'general').then(data => {
console.log(data); // whole bunch of things
}).catch(() => {
console.log('I could not find a player with that name.');
});
Possible modes:
competitive
,quickplay
: Optional, defaults to competitivePossible regions:
na
,eu
,kr
: Optional, defaults to naPossible stats:
hero
,average
,general
: Optional, defaults to hero
Counter-Strike: Global Offensive
License
MIT