0.0.2 • Published 10 months ago

steam-node v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.

0.0.2

10 months ago

0.0.1

10 months ago