humanize-number

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i humanize-number

Weekly Downloads

442,812

Version

0.0.2

License

none

Last publish

Collaborators

  • tjholowaychuk