Notoriously Psychedelic Modules

    steamid-interop

    1.0.3 • Public • Published

    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.

    Install

    npm i steamid-interop

    DownloadsWeekly Downloads

    6

    Version

    1.0.3

    License

    GPL-2.0

    Last publish

    Collaborators

    • roflmuffin