# human-size

> human readable file size

Latest version **1.1.0** (published 2014-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install human-size
pnpm add human-size
yarn add human-size
bun add human-size
```

## 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.1.0 |
| Published | 2014-10-14 |
| First published | 2014-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Andrew Kelley |
| Maintainers | superjoe |

## Links

- npm: https://www.npmjs.com/package/human-size
- Repository: https://github.com/andrewrk/node-human-size
- Issues: https://github.com/andrewrk/node-human-size/issues
- npm.io page: https://npm.io/package/human-size

## Recent versions

- 1.1.0 (latest) — 2014-10-14
- 1.0.0 — 2014-10-13

## README

# node-human-size

Tiny module to get a human readable file size from a byte count.

## Usage

```js
var humanSize = require('human-size');

console.log(humanSize(10 * 1024 * 1024));
// prints "10 MB"

console.log(humanSize(10 * 1024 * 1024, 2));
// prints "10.00 MB"

console.log(humanSize(106168));
// prints "103 KB"

console.log(humanSize(106168, 2));
// prints "103.68 KB"
```

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