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

steamrep

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steamrep

SteamRep API Wrapper for node.js

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
11
22.22%
Maintainers
1
Weekly downloads
 
Created
Source

SteamRep API Wrapper for node.js

NPM version Dependency Status Build Status

Very thin wrapper for the API provided by SteamRep.com.

Installation

npm install steamrep

Usage

var SteamRepAPI = require('steamrep');

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

// All methods are "static"
SteamRepAPI.isScammer("76561197960435530", function(error, result) {
  if(error) {
    console.log(error);
  } else {
    if(result) {
      console.log("This user is tagged as 'SCAMMER' at SteamRep.");
    } else {
      console.log("This user is NOT tagged as 'SCAMMER' at SteamRep.");
    }
  }
});

SteamRepAPI.getProfile("76561197960435530", function(error, result) {
  if(error === null) {
    console.log(result);
  }
});

Properties

timeout

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

Methods

isScammer(steamID, callback)
  • steamID - user's SteamID64 as string
  • callback - should be function(error, result)
    • error comes from the HTTP request
    • result is either true or false

Provides simple yes/no answer about user's scammer status.

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 SteamRep information about given SteamID64, such as VAC status, reputation status, pending reports and more.

Tests

npm test

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