# byteman

> 🤖 Display bytes in a human readable format: KB, MB, GB, TB, PB, EB, ZB, YB

Latest version **1.3.5** (published 2017-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install byteman
pnpm add byteman
yarn add byteman
bun add byteman
```

## 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.3.5 |
| Published | 2017-08-18 |
| First published | 2016-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | David Gatti |
| Maintainers | davidgatti |
| Keywords | bytes, human, convert, format |

## Links

- npm: https://www.npmjs.com/package/byteman
- Repository: https://github.com/davidgatti/byteman
- Homepage: https://github.com/davidgatti/byteman#readme
- Issues: https://github.com/davidgatti/byteman/issues
- npm.io page: https://npm.io/package/byteman

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.3.5 (latest) — 2017-08-18
- 1.3.4 — 2017-08-18
- 1.3.3 — 2017-04-11
- 1.3.2 — 2017-04-11
- 1.3.1 — 2017-04-11
- 1.3.0 — 2017-03-14
- 1.2.0 — 2017-03-14
- 1.1.0 — 2017-03-07
- 1.0.0 — 2016-12-29

## README

[![downloads][downloads-badge]][npm-stat]

[downloads-badge]: https://img.shields.io/npm/dm/byteman.svg?style=flat-square
[npm-stat]: http://npm-stat.com/charts.html?package=byteman&from=2016-04-01

---

# 🤖 Byteman

Display bytes in a human readable format: KB, MB, GB, TB, PB, EB, ZB, YB

Byteman is short for "bytes to human" which is a tool to convert a number, normally the amount of bytes of something in to a human readable format. For example `1000` bytes will become `1KB`. Helping you work with big number more easily, and also helping you user understand better what is going on.

# Example

```javascript
let byteman = require('byteman');

let human_form = byteman(10000);
let human_form_decima = byteman(10000, 2);

console.log(human_form)
console.log(human_form_decima)
```

# Installation

```
$ npm install byteman -S
```

# The End

If you've enjoyed this article/project, please consider giving it a 🌟 or donate.

- [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/gattidavid/25)
- [![Star on GitHub](https://img.shields.io/github/stars/davidgatti/byteman.svg?style=social)](https://github.com/davidgatti/byteman/stargazers)
- [![Watch on GitHub](https://img.shields.io/github/watchers/davidgatti/byteman.svg?style=social)](https://github.com/davidgatti/byteman/watchers)

Also check out my [GitHub account](https://github.com/davidgatti), where I have other articles and apps that you might find interesting.

## Where to follow

You can follow me on social media 🐙😇, at the following locations:

- [GitHub](https://github.com/davidgatti)
- [Twitter](https://twitter.com/dawidgatti)
- [Instagram](https://www.instagram.com/gattidavid/)

## More about me

I don’t only live on GitHub, I try to do many things not to get bored 🙃. To learn more about me, you can visit the following links:

- [Podcasts](http://david.gatti.pl/podcasts)
- [Articles](http://david.gatti.pl/articles)
- [Technical Articles](http://david.gatti.pl/technical_articles)
- [Software Projects](http://david.gatti.pl/software_projects)
- [Hardware Projects](http://david.gatti.pl/hardware_projects)

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