Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/lachlandev/easy-number-formatter
- Owner: LachlanDev
- License: mit
- Created: 2021-02-18T07:09:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-24T23:42:14.000Z (over 3 years ago)
- Last Synced: 2024-09-17T01:38:23.727Z (about 2 months ago)
- Topics: nodejs, npm, npm-package, number, numberformat, numberformatter
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/easy-number-formatter
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easy-number-formatter
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)
```