bzip2-maybe
Transform stream that `bzip2`s its input if it is `bzip2`ped and just echoes it if not
Last updated 8 years ago by piranna .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install bzip2-maybe 
SYNC missed versions from official npm registry.

build status Coverage Status js-standard-style

bzip2-maybe

Transform stream that bzip2s its input if it is bzip2ped and just echoes it if not.

This is based on code from gunzip-maybe

npm install bzip2-maybe

Usage

Simply pipe a bzip2ped (or not bgzip2ped) stream to bzip2() function and read the unbzip2ped content.

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

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

CLI usage

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

License

MIT

Current Tags

  • 1.0.0                                ...           latest (8 years ago)

1 Versions

  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE