# bzip2-maybe

> Transform stream that `bzip2`s its input if it is `bzip2`ped and just echoes it if not

Latest version **1.0.0** (published 2016-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install bzip2-maybe
pnpm add bzip2-maybe
yarn add bzip2-maybe
bun add bzip2-maybe
```

Provides the command `bzip2-maybe`.

## 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.0 |
| Published | 2016-08-20 |
| First published | 2016-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jesús Leganés-Combarro 'piranna' |
| Maintainers | piranna |

## Links

- npm: https://www.npmjs.com/package/bzip2-maybe
- Repository: https://github.com/piranna/bzip2-maybe
- Issues: https://github.com/piranna/bzip2-maybe/issues
- npm.io page: https://npm.io/package/bzip2-maybe

## Dependencies (5)

- [pumpify](https://npm.io/package/pumpify.md) ^1.3.5
- [is-bzip2](https://npm.io/package/is-bzip2.md) ^1.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [peek-stream](https://npm.io/package/peek-stream.md) ^1.1.1
- [unbzip2-stream](https://npm.io/package/unbzip2-stream.md) ^1.0.9

## Recent versions

- 1.0.0 (latest) — 2016-08-20

## README

[![build status](http://img.shields.io/travis/piranna/bzip2-maybe.svg?style=flat)](http://travis-ci.org/piranna/bzip2-maybe)
[![Coverage Status](https://coveralls.io/repos/github/piranna/bzip2-maybe/badge.svg?branch=master)](https://coveralls.io/github/piranna/bzip2-maybe?branch=master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

# bzip2-maybe

Transform stream that `bzip2`s its input if it is `bzip2`ped and just echoes it
if not.

This is based on code from
[gunzip-maybe](https://github.com/mafintosh/gunzip-maybe)

```sh
npm install bzip2-maybe
```

## Usage

Simply pipe a `bzip2`ped (or not `bgzip2`ped) stream to `bzip2()` function and
read the un`bzip2`ped content.

```js
// this will `bzip2` bzip2pedStream
bzip2pedStream.pipe(bzip2()).pipe(process.stdout);

// this will just echo plainTextStream
plainTextStream.pipe(bzip2()).pipe(process.stdout);
```

## CLI usage

```sh
npm install -g bzip2-maybe
bzip2-maybe --help  # will print out usage
```

## License

MIT

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