JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 125
  • Score
    100M100P100Q29499F
  • License ISC

Player Data for multiple games.

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

const core = require('game-data');
const client = new core.Client({
    steam: '<YOUR_STEAM_API_KEY',
    rocket: '<YOUR_ROCKET_LEAGUE_API_KEY>'
});

You only need to provide the keys of the APIs you will be using.

Rocket League

client.getRocketLeagueProfile('shadowinsaanity', '2').then(data => {
    console.log(data.name); // shadowinsaanity
});
  • Possible platforms: steam, psn, xbl

Overwatch

client.getOverwatchProfile('Calvin-1337', 'competitive', 'na').then(data => {
    console.log(data.tier); // grandmaster
});
  • Possible modes: competitive, quickplay
  • Possible regions: us, eu, kr

Minecraft

client.getMinecraftProfile('play.minesuperior.com/status').then(data => {
    console.log(data.status); // true
});

Counter-Strike: Global Offensive

client.getCSGOProfile('76561198294668168').then(data => {
    console.log(data.id); // 76561198294668168
});
Method Type
pistolKills() number
heavyKills() number
smgKills() number
rifleKills() number
grenadeKills() number
knifeKills() number
achieved() number

License

ISC