# number-prettier

> Formats numbers into a shortened version for example : 1000 => 1k

Latest version **1.0.5** (published 2021-09-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install number-prettier
pnpm add number-prettier
yarn add number-prettier
bun add number-prettier
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-09-27 |
| First published | 2021-09-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | https://github.com/UnusualAbsurd |
| Maintainers | unusualabsurd |
| Keywords | num |

## Links

- npm: https://www.npmjs.com/package/number-prettier
- Repository: https://github.com/UnusualAbsurd/num-format
- Homepage: https://github.com/UnusualAbsurd/num-format#readme
- Issues: https://github.com/UnusualAbsurd/num-format/issues
- npm.io page: https://npm.io/package/number-prettier

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2021-09-27
- 1.0.4 — 2021-09-01
- 1.0.3 — 2021-09-01
- 1.0.2 — 2021-09-01
- 1.0.0 — 2021-09-01

## README

# number-prettier 
Pretty a number and shortened it to make it look more pretty and simple.

## Number Commas 🌠
```js
const { commas } = require('number-prettier')
commas(1000000) // 1,000,000
```

## Number Formatting 📲
```js
const { format } = require('number-prettier')
format(1000, 2) // 1k
```
## Available Values
```json
{
"k": "thousands",
"M": "millions",
"B": "billions",
"T": "trillions",
"Q": "quadrillions",
"QT": "quintillions"
}
```
### Note
```
You can add more values by accessing the index.js file from the package file , and added the values on your own!
Below are the list of the scientifc notations for the values! Thank you 😄
```
# https://clickerheroes.fandom.com/wiki/Units

---
_Source: https://npm.io/package/number-prettier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
