Convert:
- ...profile URL or vanity to steamID64
- ...group URL or Custom URL to groupID64
- ...steamID64 to profile vanity
- ...validate sharedfile (screenshots, artworks & guides) IDs
It can also return you all information Steam knows about a profile in a nice object format.
ย
Open a terminal in your project folder and run:
> npm install steamid-resolver
Do not use the scoped GitHub Packages command, it will not work.
You can then import the library in your project:
const steamIdResolver = require("steamid-resolver");
ย
All functions support both Promises and callbacks!
This means you can either use await
, .then(response => {})
& .catch(err => {})
or pass a callback function (err, response) => {}
as parameter.
Note: You cannot use both callbacks and .catch()
as a Promise is only rejected when no callback was passed. This prevents any UnhandledPromiseRejection
errors crashing your process.
ย
steamID64
- steamID64 or full URL of the user you want to get the customURL of. Example:"76561198260031749"
or"https://steamcommunity.com/profiles/76561198260031749"
callback
- Optional: Called on error or successerr
- A String detailing the reason of the failure ornull
on successcustomURL
- The customURL of the user ornull
on failure. Example on success:"3urobeat"
customURL
- customURL or full URL of the user you want to get the steamID64 of. Example:"3urobeat"
or"https://steamcommunity.com/id/3urobeat"
callback
- Optional: Called on error or successerr
- A String detailing the reason of the failure ornull
on successsteamID64
- The steamID64 of the user ornull
on failure. Example on success:"76561198260031749"
steamID64
- steamID64 or full URL of the user you want to get all information of.callback
- Optional: Called on error or successerr
- A String detailing the reason of the failure ornull
on successinfo
- The full information of the user as object ornull
on failure. Example: Imagine this but as an object
customURL
- customURL or full URL of the user you want to get all information of.callback
- Optional: Called on error or successerr
- A String detailing the reason of the failure ornull
on successinfo
- The full information of the user as object ornull
on failure. Example: Imagine this but as an object
groupURL
- groupURL or full URL of the group you want to get the groupID64 of. Example:"3urobeatGroup"
or"https://steamcommunity.com/groups/3urobeatGroup"
callback
- Optional: Called on error or successerr
- A String detailing the reason of the failure ornull
on successgroupID64
- The groupID64 of the group ornull
on failure. Example on success:"103582791464712227"
groupURL
- groupURL or full URL of the group you want to get all information of.callback
- Optional: Called on error or successerr
- A String detailing the reason of the failure ornull
on successinfo
- The full information of the group as object ornull
on failure. Example: Imagine this but as an object
sharedfileID
- Sharedfile ID or full sharedfile URL. Example:"2966606880"
or"https://steamcommunity.com/sharedfiles/filedetails/?id=2966606880"
callback
- Optional: Called on error or successerr
- A string detailing the reason of the failure ornull
on successisValid
-true
if a sharedfile with that ID exists orfalse
if not