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, Minecraft, Counter-Strike: Global Offensive
If this package gets enough attention/installs I will do a complete re-write and make it actually good xD
const core = require('game-data');
const client = new core.Client({
steamAPI: '<YOUR_STEAM_API_KEY>',
rocketAPI: '<YOUR_ROCKET_LEAGUE_API_KEY>'
});
- Steam API Key can be found at: https://steamcommunity.com/dev/apikey
- Rocket League API Key can be found at: https://developers.rocketleaguestats.com/
Rocket League
client.RLoverallStats('shadowinsaanity', 'psn').then(data => {
console.log(data.displayName); // shadowinsaanity
})
- Possible platforms: 1-steam, 2-psn, 3-xbl
Overwatch
client.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(() => {});
- Possible modes:
competitive
,quickplay
: Optional, defaults to competitive - Possible regions:
na
,eu
,kr
: Optional, defaults to na
Minecraft
client.MCstats('play.minesuperior.com/status').then(data => {
console.log(data.status); // true
});
Counter-Strike: Global Offensive
client.CSstats('76561198294668168').then(data => {
console.log(data.steamID); // 76561198294668168
});
License
MIT