node-steamid-resolver
NPM library to get steamids from profile or group links and the other way around.
Also includes function to return you all information returned by Steam from this page in a nice object format.
Install
Note: If you are here from GitHub Packages please use the npm package with the command below instead of the scoped GitHub command from above. It won't work.
Open a terminal in your project folder and type:
$ npm install steamid-resolver
You can then import the library in your code:
var steamidResolver = require("steamid-resolver")
Functions
steamID64ToCustomUrl(steamID64, callback)
-
steamID64
- steamID64 or full URL of the user you want to get the customURL of. Example:"76561198260031749"
or"https://steamcommunity.com/profiles/76561198260031749"
-
callback
- Called on error or success-
err
- A String detailing the reason of the failure ornull
on success -
customURL
- The customURL of the user ornull
on failure. Example on succes:"3urobeat"
-
customUrlTosteamID64(customURL, callback)
-
customURL
- customURL or full URL of the user you want to get the steamID64 of. Example:"3urobeat"
or"https://steamcommunity.com/id/3urobeat"
-
callback
- Called on error or success-
err
- A String detailing the reason of the failure ornull
on success -
steamID64
- The steamID64 of the user ornull
on failure. Example on succes:"76561198260031749"
-
steamID64ToFullInfo(customURL, callback)
-
customURL
- steamID64 or full URL of the user you want to get all information of. -
callback
- Called on error or success-
err
- A String detailing the reason of the failure ornull
on success -
info
- The full information of the user as object ornull
on failure. Example: Imagine this but as object
-
customUrlToFullInfo(customURL, callback)
-
customURL
- customURL or full URL of the user you want to get all information of. -
callback
- Called on error or success-
err
- A String detailing the reason of the failure ornull
on success -
info
- The full information of the user as object ornull
on failure. Example: Imagine this but as object
-
groupUrlToGroupID64(groupURL, callback)
-
groupURL
- groupURL or full URL of the group you want to get the groupID64 of. Example:"3urobeatGroup"
or"https://steamcommunity.com/groups/3urobeatGroup"
-
callback
- Called on error or success-
err
- A String detailing the reason of the failure ornull
on success -
groupID64
- The groupID64 of the group ornull
on failure. Example on succes:"103582791464712227"
-
groupUrlToFullInfo(groupURL, callback)
-
groupURL
- groupURL or full URL of the group you want to get all information of. -
callback
- Called on error or success-
err
- A String detailing the reason of the failure ornull
on success -
info
- The full information of the group as object ornull
on failure. Example: Imagine this but as object
-