JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35293F
  • License GPL-3.0

CSGO stats using the Official Steam API.

Package Exports

  • csgo.js
  • csgo.js/index.js

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 (csgo.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

csgo.js

CodeFactor NPM-Version NPM-Downloads Github Stars Issues

A CSGO Stats library that uses the official Steam API.

Dependencies

axios

Instalattion

To install use:

npm i csgo.js

You'll need a Steam API Key, you can get one free here

Available Methods for user

You must call API.fetchUser before using any other method.

Method Description More info
info() User related Info info.md
stats() General Stats stats.md
maps() Map related Stats maps.md
weapons() Weapons Stats weapons.md
lastMatch() lastMatch Stats lastMatch.md
unknown() Unknown Stats unknown.md
raw raw data collected so far raw.md

Example usage

For more example usages go into the docs folder or click the links in the table above

const { API } = require('csgo.js');
const { STEAM_TOKEN } = require('./keys.json');

const user = await API.fetchUser('iFraan_', STEAM_TOKEN);
const { kills, deaths, time_played, damage_done } = user.stats();
console.log(kills, deaths, time_played, damage_done);

Disclaimer

This project is fully for educational purposes.