Install
npm install --save short-num
Usage
var shortNum = ; // shortNum(number, decimalPlaces, abbrev=[ "k", "m", "b", "t" ])console // => '12.35k'
Code from a StackOverflow question and then modified.
Install
npm install --save short-num
Usage
var shortNum = ; // shortNum(number, decimalPlaces, abbrev=[ "k", "m", "b", "t" ])console // => '12.35k'
Code from a StackOverflow question and then modified.
npm i short-num
2
0.2.0
MIT
2.35 kB
4