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
See TFSpec.js for some example usage.
See Documentation.md.
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