clickerheroes-format
Format large numbers just as ClickerHeroes does.
Example
const format = require('clickerheroes-format');
format(1e5);
// => '100K'
Installation
$ npm install clickerheroes-format
API
const format = require('clickerheroes-format');
format(n)
Format Number n
as a String abbreviated with the same units that
ClickerHeroes uses.