Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qgisk/steamresolver

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qgisk/steamresolver

Steam ID Lookup from custom urls and the other way around

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
Maintainers
1
Weekly downloads
 
Created
Source

Steam ID Resolver for NodeJS

NPM version NPM downloads Test package

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

• Description

This package converts custom steam urls into ids and the other way around, Also converts it into full profiles.

• Installation

npm i @qgisk/steamresolver

• Constants

This module provides helper constants for use in calls.

KeyUsageDescription
BASESteamResolver.BASEBase url for steam

• Quick Start Example

// Import the wrapper library
const SteamResolver = require('@qgisk/steamresolver');

// Initiate the client
const Resolver = new SteamResolver();

// Create a function that gets a joke
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();

• From id to custom url

Converts a steamID64 into a custom url

• Example

const res = await Resolve.toCustomURL('76561198250920834');
const res = await Resolve.toCustomURL('https://steamcommunity.com/profiles/76561198250920834');

• From custom url to id

Converts a custom url into a steamID64

• Example

const res = await Resolve.fromCustomURL('Demiann');
const res = await Resolve.fromCustomURL('https://steamcommunity.com/id/Demiann');

• From steamID64 to full information

Converts a steamID64 into a full profile

• Example

const res = await Resolve.from64ToFull('76561198250920834');
const res = await Resolve.from64ToFull('https://steamcommunity.com/profiles/76561198250920834');

• From Custom URL to full information

Converts a Custom URL into a full profile

• Example

const res = await Resolve.fromCustomToFull('Demiann');
const res = await Resolve.fromCustomToFull('https://steamcommunity.com/id/Demiann');

• From Group url to id

Converts a Goup URL into an id

• Example

const res = await Resolve.fromGroupURLToID('ROBOTAIM');
const res = await Resolve.fromGroupURLToID('https://steamcommunity.com/groups/ROBOTAIM');

• From Group url to Full information

Converts a Goup URL into a full profile

• Example

const res = await Resolve.fromGroupUrlToFull('ROBOTAIM');
const res = await Resolve.fromGroupUrlToFull('https://steamcommunity.com/groups/ROBOTAIM');

• Inspiration

miscavage/CoinGecko-API

HerrEuroBeat/node-steamid-resolver

• License

MIT

Keywords

FAQs

Package last updated on 31 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc