Abbreviated Numbers

🧮 A simple tool to abbreviate numbers

Abbreviated Numbers

img

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