JSPM

globaloffensive-sharecode

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2797
  • Score
    100M100P100Q127616F
  • License WTFPL

Counter Strike: Global Offensive ShareCode decoder

Package Exports

  • globaloffensive-sharecode

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 (globaloffensive-sharecode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Counter Strike: Global Offensive ShareCode decoder

A ShareCode decoder for CS:GO match replay sharecodes. Based on joshuaferrara's node-csgo's sharecode decoder.

Example usage

const { ShareCode } = require('globaloffensive-sharecode');

const shareCode = new ShareCode('CSGO-vGqmL-vb2x2-nTQtU-e9dco-qWHzN');
const data = shareCode.decode();

console.log(data)

{ matchId: '3354591898827227340',
  outcomeId: '3354598500191961136',
  token: '7780' }