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

https://github.com/ollieglass/js-humanize

Humanize large numbers
https://github.com/ollieglass/js-humanize

Last synced: about 2 months ago
JSON representation

Humanize large numbers

Awesome Lists containing this project

README

          

#js-humanize#

JavaScript number formatter for human readability

## Usage ##

```javascript
Humanize.humanize(1); // 1
Humanize.humanize(10); // 10
Humanize.humanize(100); // 100
Humanize.humanize(1000); // '1K'
Humanize.humanize(10000); // '10K'
Humanize.humanize(100000); // '100K'
Humanize.humanize(1000000); // '1M'
Humanize.humanize(10000000); // '10M'
Humanize.humanize(1000000000); // '1B'
Humanize.humanize(10000000000); // '10B'
Humanize.humanize(100000000000); // '100B'
```