Skip to content

bsonmez/abbreviated-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abbreviated Numbers

Build Status Stars contributions welcome GitHub release GitHub license

It's a very simple and tiny tool converts numbers more human-readable abbreviated numbers.

Installation

npm i abbreviated-numbers

OR

yarn add abbreviated-numbers

Usage

const { Abbreviated } = require('abbreviated-numbers');

Abbreviated.get(number); //returns 2K for 2000.
Abbreviated.length(number); //returns 4 for 2000.
Abbreviated.fixed(number); //returns 142.87 for 142.8686275710162478510210957

About

🧮 A simple tool to abbreviate numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published