clickerheroes-format
v2.0.0
Published
Format large numbers like ClickerHeroes does
Downloads
11
Readme
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.