1.0.4 • Published 2 years ago

num-wordify v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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😁
1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago