JSPM

csgo-data

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q32977F
  • License MIT

A minimalist and lightweight module to get data from CS:GO players.

Package Exports

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

    Readme

    CSGO:DATA


    A minimalist and simple module to interact and get stats from CS:GO players. JSON format.


    Getting started

    const csgodata = require('csgo-data');
    const connection = new csgodata.Connection('STEAM API KEY GOES HERE');
    
    // Get stats from a user
    connection.getStats('STEAM64 ID GOES HERE').then(r => ...)
    
    // Get achievements from a user
    connection.getAchievements('STEAM64 ID GOES HERE').then(r => ...)
    
    // Get global achievement percentages (No arguments required)
    connection.getAchievementsPercentages().then(r => ...)
    
    // Get someone's CS:GO inventory
    connection.getInventory('STEAM64 GOES HERE').then(r => ...)

    Note: csgo-data only supports steam64 ids (example: 123456789078678) for the moment. You can use modules to convert those ids.


    Made w/❤ by cctwaterson. | Steam profile