A NodeJS SteamResolver with only two dependencies isomorphic-unfetch and xml2js.
Steam is now blocking most of these requests ( Half the time -ish), I suggest using their api from now on, see docs
This package converts custom steam urls into ids and the other way around, Also converts it into full profiles.
npm i @qgisk/steamresolver
// Import the wrapper library
import SteamResolver from '@qgisk/steamresolver';
// Or for CommonJS
const {SteamResolver} = require('@qgisk/steamresolver');
// Initiate the client
const Resolve = new SteamResolver();
// Create a function that gets the custom url
const get = async () => {
const fromID = await Resolve.toCustomURL('76561198250920834');
const fromLink = await Resolve.toCustomURL('htts://steamcommunity.com/profiles/76561198250920834');
console.log(fromID, fromLink);
};
// Execute the function
get();
Common JS
https://cdn.jsdelivr.net/npm/@qgisk/[email protected]/dist/index.js
Module
https://cdn.jsdelivr.net/npm/@qgisk/[email protected]/dist/index.mjs
Full documentation can be found here