1.2.1 • Published 9 months ago

@j4ckofalltrades/steam-webapi-ts v1.2.1

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

steam-webapi-ts

npm GitHub package.json dependency version (prod) codecov

npm

Isomorphic Steam WebAPI wrapper in TypeScript.

Installation

Using npm

$ npm install @j4ckofalltrades/steam-webapi-ts

Using yarn

$ yarn add @j4ckofalltrades/steam-webapi-ts

Using GitHub Packages

This step requires authenticating to GitHub Packages, then installing the package using npm.

$ npm install @j4ckofalltrades/steam-webapi-ts

via CDN

Usage

This requires a Steam WebAPI Key, you can get one at https://steamcommunity.com/dev/apikey

You can use either the provided SteamWebApi wrapper

import { SteamWebApi } from "@j4ckofalltrades/steam-webapi-ts"

const steamWebApi = new SteamWebApi("api_key")
await steamWebApi.usersApi.getPlayerSummaries(["steam_ids"])

or with a specific interface e.g. ISteamUser

import { ISteamUser } from "@j4ckofalltrades/steam-webapi-ts"

const usersApi = new ISteamUser("api_key")
await usersApi.getPlayerSummaries(["steam_ids"])

Docs

For more detailed documentation see https://j4ckofalltrades.github.io/steam-webapi-ts.

Stats

Alt

1.2.1

9 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago

0.1.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago