# number-shortener

> Takes a long number and translates to a beautifully short number

Latest version **1.0.1** (published 2018-12-15) · ISC license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2018-12-15 |
| First published | 2018-12-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathon Powell |
| Maintainers | jon21 |
| Keywords | number, shortnener, number, beautifier |

## Links

- npm: https://www.npmjs.com/package/number-shortener
- Repository: https://github.com/2JJ1/shortnumber
- Homepage: https://github.com/2JJ1/shortnumber#readme
- Issues: https://github.com/2JJ1/shortnumber/issues
- npm.io page: https://npm.io/package/number-shortener

## 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.1 (latest) — 2018-12-15
- 1.0.0 — 2018-12-15

## README

# number-shortener

Takes a long number and translates to a beautifully short number.

1000 = 1k

2600000 = 2.6m

301000000001 = 301b+

99999999999999 = 99.9t+

x > 9999999999999999 = scientific notation



# Installing

Using NPM

    npm i number-shortener

# Example
#### Import

    const shortNum = require('number-shortener')
	shortNum(301000000001) //returns 301b+
	shortNum(9999999999999999999991) //returns 1e+22

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