You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
329 B
26 lines
329 B
3 years ago
|
|
||
|
# humanize-number
|
||
|
|
||
|
Humanize a number `1000000.99` -> `1,000,000.99`
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
$ component install component/humanize-number
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```js
|
||
|
var humanize = require('humanize-number');
|
||
|
|
||
|
humanize(1000);
|
||
|
// => '1,000'
|
||
|
|
||
|
humanize(1000.55, { delimiter: '.', separator: ',' });
|
||
|
// => '1.000,55'
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|
||
|
|