Skip to content

ollieglass/js-humanize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

#js-humanize#

JavaScript number formatter for human readability

Usage

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'

About

Humanize large numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published