# byt

> Convert arbitrary unit strings into byte counts

Latest version **0.1.0** (published 2013-11-16) · BSD-2-Clause license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-11-16 |
| First published | 2013-11-16 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Drew Stokes |
| Maintainers | dstokes |
| Keywords | byte, convert, mb, gb, kb |

## Links

- npm: https://www.npmjs.com/package/byt
- Repository: https://github.com/dstokes/byt
- Issues: https://github.com/dstokes/byt/issues
- npm.io page: https://npm.io/package/byt

## 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

- 0.1.0 (latest) — 2013-11-16

## README

byte
====

Convert arbitrary unit strings into byte counts.

[![Build Status](https://travis-ci.org/dstokes/byt.png)](https://travis-ci.org/dstokes/byt)  
[![NPM](https://nodei.co/npm/byt.png?downloads=true)](https://nodei.co/npm/byt/)  

example
=======
``` js
var b = require('byt');

b(1024);   // => 1024
b('1k');   // => 1024
b('2.5m'); // => 2621440
b('1GB');  // => 1073741824
```

install
=======

With [npm](http://npmjs.org) do:

```
npm install byt
```

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