Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lachlandev/easy-number-formatter

Simple Number format script (Convert 1000 - 1K)
https://github.com/lachlandev/easy-number-formatter

nodejs npm npm-package number numberformat numberformatter

Last synced: about 1 month ago
JSON representation

Simple Number format script (Convert 1000 - 1K)

Awesome Lists containing this project

README

        

# easy-number-formatter


version
downloads
downloads

Simple Number format script (Convert 1000 - 1K)

## About
Using this NPM package you will be able to convert large numbers to a simple text format,
* 1000 - 1K
* 1,000,000 - 1M
* 1,000,000,000 - 1B
* 1,000,000,000,000 - 1T

## Installation
``npm i easy-number-formatter``

## Usage
```javascript
const number = require('easy-number-formatter')

var newNum = number.formatNumber(1000)

console.log(newNum)
```