steam-node
v0.0.2
Published
A NodeJS wrapper for Steam's APIs
Downloads
8
Readme
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.