JSPM

steam-inventories

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

Read the items from a Steam inventory

Package Exports

  • steam-inventories

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

Readme

steam-inventories

Steam Inventories is a forked version of steam-user-inventory the uses unirest and has a bit better configuration.

npm version npm Maintenance

NPM

WARNING: This module uses the steam community inventory method which means that your ip will get an HTTP 429 after a certain number of calls. Be advised and cache the hell out of it.

Install

npm install --save steam-inventories

Options

  • appID Is the Steam Application ID. There is no default value and it has to be declared.
  • contextID The default value is 2. Probably you wont have to change it.
  • steamUser Is the username of the user that you want to load the inventory
  • steamID The SteamID 64. It cam be used instead of steamUser

Usage

var SteamInventories = require('steam-inventories');

SteamInventories.get({
    appID: 730,
    steamID: '76561198040824008'
}, function(err, items) {
    if(err) {
        throw err;
    }
    console.log(JSON.stringify(items))
});