steam-node

0.0.2 • Public • Published

version downloads style

steam-node

A NodeJS wrapper for Steam's APIs

Table of Contents

Installation

To install the library, run:

$ npm install steam-node

or with JSDelivr:

<script src="https://cdn.jsdelivr.net/npm/steam-node@latest/file"></script>

Importing

With require:

const API = require("steam-node");

With import:

import API from "steam-node";

Usage

Initiating the wrapper

import API from "steam-node";

const api = new API({
    user: '', // Steamworks Web API user authentication key (optional)
    publisher: '' // Steamworks Web API publisher authentication key (optional)
}, error) // Whether or not to throw an error when an invalid API response is received 

Using the API

Wrapper responses and endpoints can be found at the Steamworks Web API Reference.

import API from "steam-node";
const api = new API({ user })

await api.getAccountList() // https://partner.steamgames.com/doc/webapi/IGameServersService
await api.beginHTTPUpload(name, value) // https://partner.steamgames.com/doc/webapi/ICloudService

Note that some API endpoints do not require an API key.

Readme

Keywords

Package Sidebar

Install

npm i steam-node

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

273 kB

Total Files

4

Last publish

Collaborators

  • else1f