num-wordify
v1.0.4
Published
NumConverter is a lightweight JavaScript library that allows you to convert large numbers into a more readable format with abbreviated units such as K (thousands), M (millions), and B (billions).
Downloads
24
Readme
NumConverter
NumConverter is a lightweight JavaScript library that allows you to convert large numbers into a more readable format with abbreviated units such as K (thousands), M (millions), and B (billions).
Installation
You can install NumConverter via npm:
npm install num-wordify
## Usage
To use NumConverter in your JavaScript project, first import it:
import convert from "num-wordify";
const number1 = 12345;
console.log(convert(number1)); // Output: '12.35K'
const number2 = 123456789;
console.log(convert(number2)); // Output: '123.46M'
Please keep "type": "module" in your package.json
Cheers😁