Turn a long number into a short one to improve readability.
Installation
$ npm install --save short-number
Or with bower:
$ bower install short-number
Usage
var shortNumber = ; ;//=> 5.4K ;//=> 1.2M
Supports numbers up to 1e18
.
License
MIT © Jonathan Svärdén