JSPM

steamid-helpers

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 896
  • Score
    100M100P100Q102365F
  • License MIT

Various convertation functions for Steam`s IDs.

Package Exports

  • steamid-helpers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (steamid-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-steamid-helpers

Various convertation functions for Steam`s IDs.

Installation

  1. Install npm package:
npm install steamid-helpers
  1. Require the module in your code
let convert = require('steamid-helpers');

Methods

SteamIDtoPartnerID(steamid)

Converts SteamID64 to PartnerID (the one thats in the tradelink for example).

PartnerIDtoSteamID(partnerid)

Converts PartnerID to SteamID64

Converts tradelink (for example https://steamcommunity.com/tradeoffer/new/?partner=12345678&token=ABCDEFGH) to PartnerID

Converts tradelink (for example https://steamcommunity.com/tradeoffer/new/?partner=12345678&token=ABCDEFGH) to SteamID64