node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

humanize-number

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