Introduction

A NodeJS SteamResolver with only two dependencies isomorphic-unfetch and xml2js.

• NOTICE

Steam is now blocking most of these requests ( Half the time -ish), I suggest using their api from now on, see docs

Features

ID to Custom url
Custom url to ID
ID to Full Profile
Custom url to full Profile
Group url to ID
Group ID to full profile

Simple Example

index.js
// Import the wrapper library
import SteamResolver from '@qgisk/steamresolver';
// Import your preferred fetch library
import fetch from 'isomorphic-unfetch'

// Or for CommonJS
const {SteamResolver} = require('@qgisk/steamresolver');

// Initiate the client
const Resolve = new SteamResolver(fetch);

// 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();
Edit this page on GitHub Updated at Tue, Aug 16, 2022