Skip to content
Transform stream that gunzips its input if it is gzipped and just echoes it if not
JavaScript
Find file
Latest commit 7158c10 Jan 24, 2016 @watson watson 1.3.1

README.md

gunzip-maybe

Transform stream that gunzips its input if it is gzipped and just echoes it if not.

npm install gunzip-maybe

build status js-standard-style

Usage

Simply pipe a gzipped (or not gzipped) stream to gunzip() and read the unzipped content.

// this will gunzip gzippedStream
gzippedStream.pipe(gunzip()).pipe(process.stdout);

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

CLI usage

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

License

MIT

Something went wrong with that request. Please try again.