An open API service indexing awesome lists of open source software.

https://github.com/component/humanize-number

Humanize a number 1000000.99 -> 1,000,000.99
https://github.com/component/humanize-number

Last synced: 5 months ago
JSON representation

Humanize a number 1000000.99 -> 1,000,000.99

Awesome Lists containing this project

README

          

# 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