JSPM

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

Tiny node.js module to fetch steam user data from steamID64s

Package Exports

  • steam-userinfo

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

Readme

Steam User Info for Node.js

Tiny node.js module to fetch steam user data from steamID64s

This was created so that persona names could be found from steamIDs given in trade offers

Installation

npm install steam-userinfo

Usage

Require the module and run the setup method with your Steam Web API key (string)

var steamuserinfo = require('steam-userinfo');

steamuserinfo.setup(yourapikey);

Methods

setup(apikey)

Must be used to provide the module with a valid api key before any other methods

getUserInfo(steamID64, callback)

Returns a javascript object of data on the steamID64 in question

steamuserinfo.getUserInfo(steamID64, function(error, data){
    if(error) throw error;
    //process the data
    console.log(JSON.stringify(data.response));
});

Contributions

Feel free to contribute in any way you want - this was created as a quick fix and thought I would share.

Open an issue if any bugs are found.