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

steam-mini-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steam-mini-api

Simple Steam API wrapper exposing some useful methods

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Simple Steam API wrapper exposing some useful methods

Requirements

Get a Steam API Key for the package.

Installation

# Install with npm
npm install steam-mini-api

Usage

import { SteamMini } from "steam-mini-api";

const steam = new SteamMini("<YOUR-STEAM-API-KEY>");

// Get info about a single steam user by their 64 bit steam id
const user = await steam.getUserInfo("<STEAM-USER-ID>");

// Get the user's most recently played games (default return limit is 1)
const recentlyPlayed = await steam.getRecentlyPlayedGames("<STEAM-USER-ID>", 4);

// Get topmost played games, sorted by playtime
const topGames = await steam.getMostPlayed("<STEAM-USER-ID>", 4, {
  includePlayedFreeGames: false,
  includeAppInfo: true,
});

Methods

getUserInfo()   Promise<Object>

OptionsTypeDescription
steamidstringThe 64 bit steam id of the player to get the info of.

getRecentlyPlayedGames()   Promise<Array>

OptionsTypeDescription
steamidstringThe 64 bit steam id of the player to get the info of.
countnumberCount of recently played games to return. (Default: 3)

getMostPlayed()   Promise<Array>

OptionsTypeDescription
steamidstringThe Steam User ID of the player to get the info of.
countnumber (1 <= n <= 10)Count of recently played games to return. (Default: 3)
options.includePlayedFreeGamesbooleanInclude free games if the player has played them. (Default: false)
options.includeAppInfobooleanInclude game name and logo information in the output. (Default: true)

License

Steam Mini is packaged and distributed using the MIT License which allows for commercial use, distribution, modification and private use provided that all copies of the software contain the same license and copyright.

Keywords

steam

FAQs

Package last updated on 10 Jun 2024

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