humanize-number

Humanize a number (1000000 -> 1,000,000)

npm install humanize-number
25 downloads in the last day
367 downloads in the last week
1 801 downloads in the last month

humanize-number

Humanize a number 1000000.99 -> 1,000,000.99

Installation

$ component install component/humanize-number

Example

var humanize = require('humanize-number');

humanize(1000);
// => '1,000'

humanize(1000.55, { delimiter: '.', separator: ',' });
// => '1.000,55'

License

MIT

npm loves you