JSPM

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

A module for interacting with the csgo.tm API

Package Exports

  • node-csgotm-api

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

Readme

CSGO.tm API

This is a node module for interacting with the csgo.tm API. Docs available here

Installation

npm install node-csgotm-api

Usage

var csgotm = require('node-csgotm-api');
var api = new csgotm.API({apiKey: 'API key here'});

All API-call methods return Promise, and they have gotOptions param for got module

Example

api.accountGetTrades().then(trades => {
  console.log(trades);
}).catch(error => {
  console.log(error);
});