package
Transform stream that gunzips its input if it is gzipped and just echoes it if not
npm install gunzip-maybeGitHub-flavored package documentation.
Across all versions, last 30 days.
16,122,125 in 30 days
Runtime metadata.
Transform stream that gunzips its input if it is gzipped and just echoes it if not.
npm install gunzip-maybeSimply pipe a gzipped (or not gzipped) stream to gunzip([maxRecursion = 3]) and read the unzipped content.
maxRecursion protects the unzip mechanism from an infinite recursion in case of a malicious archive.
// this will gunzip gzippedStream
gzippedStream.pipe(gunzip()).pipe(process.stdout);
// this will just echo plainTextStream
plainTextStream.pipe(gunzip()).pipe(process.stdout);npm install -g gunzip-maybe
gunzip-maybe --help # will print out usageMIT
watson
w@tson.dk
Estimated unpacked size across 21 packages.
3.0 MB
Includes dependencies.
6 direct · 4 outdated
^1.0.0
2.0.0
^1.3.3
2.0.1
^2.0.3
5.0.12
^1.0.0
1.0.0
^1.1.0
1.1.3
^0.1.4
0.2.0