Skip to content

HRDepartment/steam-econcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published