JSPM

steam-tradeoffer-url-parser

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40931F
  • License MIT

Parses a steam tradeoffer url and gives a URL, token and partner params

Package Exports

  • steam-tradeoffer-url-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (steam-tradeoffer-url-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-steam-tradeoffer-url-parser

Parses a steam tradeoffer url and gives a URL, token and partner params

npm version

npm install steam-tradeoffer-url-parser
const parse = require('steam-tradeoffer-url-parser');

parse("https://steamcommunity.com/tradeoffer/new/?partner=33230825&token=XXXXXXXX")
.then(parsed => {
    console.log(parsed);
    /*
    {
        url: 'https://steamcommunity.com/tradeoffer/new?partner=33230825&token=XXXXXXXX',
        partner: '33230825',
        token: 'XXXXXXXXX'
    }
    */
})
.catch(err => {
    console.log(err);
});