# humanify-numbers

> Stringify numbers for humans. E.g. 2000 ➜ "2 Thousands"

Latest version **1.1.8** (published 2021-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install humanify-numbers
pnpm add humanify-numbers
yarn add humanify-numbers
bun add humanify-numbers
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2021-11-29 |
| First published | 2021-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | simplyCoders |
| Maintainers | ezborgy |
| Keywords | stringify, humanify, numbers |

## Links

- npm: https://www.npmjs.com/package/humanify-numbers
- Repository: https://github.com/simplyCoders/stringify-numbers
- Homepage: https://github.com/simplyCoders/stringify-numbers#readme
- Issues: https://github.com/simplyCoders/stringify-numbers/issues
- npm.io page: https://npm.io/package/humanify-numbers

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.1.8 (latest) — 2021-11-29
- 1.1.7 — 2021-11-24
- 1.1.6 — 2021-11-24
- 1.1.5 — 2021-05-15
- 1.1.4 — 2021-04-24
- 1.1.3 — 2021-04-05
- 1.1.2 — 2021-04-05
- 1.1.1 — 2021-04-05
- 1.1.0 — 2021-03-25
- 1.0.1 — 2021-03-17
- 1.0.0 — 2021-03-07
- 0.0.20 — 2021-02-20
- 0.0.19 — 2021-02-20
- 0.0.18 — 2021-02-20
- 0.0.17 — 2021-02-19
- … 16 more at https://npm.io/package/humanify-numbers/versions

## README

# humanify-numbers [![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://img.shields.io/npm/v/humanify-numbers.svg?style=flat)](https://www.npmjs.com/package/humanify-numbers) [![Run example](https://img.shields.io/static/v1?label=repl.it&message=run%20example&color=blue)](https://repl.it/join/ahkbmpzw-ezborgy)

Stringify numbers for humans, aka **_Humanify_** the numbers. 

E.g. 1234 ➜ "1.2K"

## Install 

~~~
npm install -s humanify-numbers
~~~

## TypeScript Usage

Simple TypeScript code:

~~~typescript
import { Numbers } from 'humanify-numbers'

console.log("1234567890 ➜", Numbers.stringify(1234567890))
// output: 1.2B

console.log("1234567890 ➜", Numbers.stringify(1234567890, 
                            { style: 'space' })) 
// output: 1.1GiB

console.log("1234567890 ➜", (1234567890).toLocaleString())
// compare with toLocalString(): 1,234,567,890
~~~

## JavaScript Usage

Same code in simple JavaScript:

~~~javascript
const { Numbers } = require("humanify-numbers");

console.log("1234 ➜", Numbers.stringify(1234)); 
// output: 1234 ➜ 1.2K
~~~

[Read more](https://github.com/simplyCoders/humanify-numbers).

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