Package Exports
- bzip2-maybe
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bzip2-maybe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-maybeUsage
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 usageLicense
MIT