Transform stream that `bzip2`s its input if it is `bzip2`ped and just echoes it if not
npm install 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
``sh`
npm install bzip2-maybe
Simply pipe a bzip2ped (or not bgzip2ped) stream to bzip2() function andbzip2
read the unped content.
`jsbzip2
// this will bzip2pedStream
bzip2pedStream.pipe(bzip2()).pipe(process.stdout);
// this will just echo plainTextStream
plainTextStream.pipe(bzip2()).pipe(process.stdout);
`
`sh``
npm install -g bzip2-maybe
bzip2-maybe --help # will print out usage
MIT