JSPM

steamidutils

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q42627F
  • License ISC

Several functions in steamid

Package Exports

  • steamidutils
  • steamidutils/index.js

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 (steamidutils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

steamidutils

npm i steamidutils
const SteamIDUtils = require("steamidutils");
SteamIDUtils.toSteamID("76561198148292752"); // -> STEAM_0:0:94013512
SteamIDUtils.toSteamID3("76561198148292752"); // -> U:1:188027024
SteamIDUtils.fromSteamID3("U:1:188027024"); // -> STEAM_0:0:94013512
SteamIDUtils.isSteamID("76561198148292752"); // -> false
SteamIDUtils.isSteamID("STEAM_0:0:94013512"); // -> true
SteamIDUtils.isSteamID64("76561198148292752"); // -> true
SteamIDUtils.isSteamID64("STEAM_0:0:94013512"); // -> false
SteamIDUtils.isSteamID3("76561198148292752"); // -> false
SteamIDUtils.isSteamID3("U:1:188027024"); // -> true
SteamIDUtils.profileURL("76561198148292752"); // -> http://steamcommunity.com/profiles/76561198148292752