Package Exports
- steamid-interop
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-interop) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SteamID Interop
SteamID interop allows you to decode and encode SteamIDs to various formats, such as 32-bit, 64-bit and the new Steam3 format.
var SteamID = require('steamid-interop")
var id = SteamID.decode('STEAM_0:1:1')
console.log(id.toString('64')) // 76561197960265731
console.log(id.toString('32')) // STEAM_0:1:1
console.log(id.toString('steam3')) // [U:1:3]
console.log(id.toString()) // Defaults to 64-bit when no encoding method specified.