Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 973 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 973 Bytes

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