gunzip-maybe

WebJar for gunzip-maybe

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gunzip-maybe
Last Version

Last Version

1.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

gunzip-maybe
WebJar for gunzip-maybe
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/mafintosh/gunzip-maybe

Download gunzip-maybe

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gunzip-maybe/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gunzip-maybe</artifactId>
    <version>1.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gunzip-maybe/
implementation 'org.webjars.npm:gunzip-maybe:1.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/gunzip-maybe/
implementation ("org.webjars.npm:gunzip-maybe:1.4.2")
'org.webjars.npm:gunzip-maybe:jar:1.4.2'
<dependency org="org.webjars.npm" name="gunzip-maybe" rev="1.4.2">
  <artifact name="gunzip-maybe" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gunzip-maybe', version='1.4.2')
)
libraryDependencies += "org.webjars.npm" % "gunzip-maybe" % "1.4.2"
[org.webjars.npm/gunzip-maybe "1.4.2"]

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.npm : through2 jar [2.0.3,3)
org.webjars.npm : is-deflate jar [1.0.0,2)
org.webjars.npm : is-gzip jar [1.0.0,2)
org.webjars.npm : pumpify jar [1.3.3,2)
org.webjars.npm : peek-stream jar [1.1.0,2)
org.webjars.npm : browserify-zlib jar [0.1.4,0.2)

Project Modules

There are no modules declared in this project.

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([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);

CLI usage

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

License

MIT

Versions

Version
1.4.2