New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reptf

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reptf

rep.tf API Wrapper for node.js

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
8
60%
Maintainers
1
Weekly downloads
 
Created
Source

rep.tf API Wrapper for node.js

NPM version Dependency Status Build Status

Very thin wrapper for the API provided by rep.tf.

Installation

npm install reptf

Usage

var reptf = require('reptf');

// You can change the timeout value if you wish
reptf.timeout = 5000;

// All methods are "static"
reptf.getBans('76561197960435530', function(err, res) {
  if(!err) {
    console.log(res);
  }
});

reptf.getProfile('76561197960435530', function(err, res) {
  if(!err)
    console.log(res);
  }
});

Properties

timeout

Timeout value used for HTTP requests. Defaults to 10000ms (10 seconds).

Methods

getBans(steamID, callback)
  • steamID - user's SteamID64 as string
  • callback - should be function(error, result)
    • error comes from the HTTP request
    • result is object returned by the API

Provides information about user's bans across various trading communities.

getProfile(steamID, callback)
  • steamID - user's SteamID64 as string
  • callback - should be function(error, result)
    • error comes from the HTTP request
    • result is object returned by the API

Provides information about user's overall Steam profile.

License

MIT. See LICENSE.

Keywords

steam

FAQs

Package last updated on 21 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts