steamidconvert

0.2.4 • Public • Published

SteamID Converter

A module for node that converts a 64bit SteamID to a text STEAM_x:y:z format and vice versa

npm install steamidconvert
var steam = require('steamidconvert')()

Convert SteamID into SteamID64

steam.convertTo64('STEAM_0:0:6114800') //76561197972495328

Convert SteamID64 into SteamID

steam.convertToText('76561197972495328') //STEAM_0:0:6114800

Convert Vanity into SteamID64

This is for converting custom URLs to SteamID64

//e.g. http://steamcommunity.com/id/panvertigo/
var steam = require('steamidconvert')(/*your steam api key*/)
steam.convertVanity('panvertigo', function(err, res) {
  if (err) console.log(err)
  else console.log(res) //76561198000670105
})

Convert old SteamID to new SteamID format

steam.convertToNewFormat('STEAM_0:0:6114800') //[U:1:12229600]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.456latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.456
0.2.30
0.2.20
0.2.10
0.2.00
0.1.00
0.0.40
0.0.30
0.0.20
0.0.00

Package Sidebar

Install

npm i steamidconvert

Weekly Downloads

56

Version

0.2.4

License

BSD

Last publish

Collaborators

  • babofitos