Current collected state Current
Observed since 20 Oct, 22:33 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Class and utils to read, create and transform SteamIDs
$ npm install @0x0c/steam-id
A collection of zero-dependency TypeScript tools for working with Steam ID.
⚠️ The package relies heavily on BigInt type to work with 64-bit integers.
76561197981552207)https://steamcommunity.com/profiles/76561197981552207, https://steamcommunity.com/gid/103582791435488769)21286479)STEAM_1:1:10643239)[U:1:21286479], [g:1:5967361])https://steamcommunity.com/id/username)import { SteamID } from '@0x0c/steam-id';
// Parsing from Community Profile URL
let id = new SteamID('https://steamcommunity.com/profiles/76561197981552207');
console.log(id.isValid());
// => true
console.log(id.toString());
// => 76561197981552207
console.log(id.toSteam64());
// => 76561197981552207
console.log(id.toSteam2());
// => STEAM_1:1:10643239
// Parsing from Steam ID
id = new SteamID('STEAM_1:1:10643239')
console.log(id.toSteam3());
// => [U:1:21286479]
// Parsing from Steam3 ID
id = new SteamID('[U:1:21286479]')
console.log(id.toCommunityUrl());
// => https://steamcommunity.com/profiles/76561197981552207
// Parsing from Steam64 ID
id = new SteamID('76561197981552207')
console.log(id.getAccountID());
// => 21286479
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 2.1.1Registry latest | 22 Feb 2023 | 8 | |
| 2.1.0 | 5 Feb 2023 | 8 | |
| 2.0.0 | 4 Feb 2023 | 8 | |
| 2.0.0-rc.2 | 4 Feb 2023 | 8 | |
| 2.0.0-rc.1 | 4 Feb 2023 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:33 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d9daa8e2d6504cd009b347311569c6adcdb78703fac7113c7d51c5c7b6ec220e