JSPM

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

Currency conversion and formatting library for Steam economy and real world currencies, based on the format used by backpack.tf.

Package Exports

  • steam-econcc

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

Readme

EconCC

EconCC is a currency conversion and formatting library for Steam economy and real world currencies, based on the format used by backpack.tf.

You can feed backpack.tf's IGetCurrencies API into it, or specify your own currencies. Currency-specific rounding is supported, and you can include as many real world currencies as you'd like.

EconCC has no dependencies and is supported on node.js/io.js and the browser (ES5 or better). backpack.tf parsing is supported for IGetCurrencies v1. You must obtain the data yourself and JSON.parse it before feeding it into EconCC.

CSGO/Dota 2 are supported, using backpack.tf's IGetMarketPrices API. See CSGOSCMSpec.js for an implementation.

npm: npm install --save steam-econcc

Examples

See TFSpec.js for some example usage.

Documentation

See Documentation.md.

Testing

Tests are written using jasmine. Install the test runner globally (npm install -g jasmine) and run npm test in the root directory.

Compile the source with: npm run build

License

MIT