MCPcopy Create free account
hub / github.com/mafintosh/gunzip-maybe

github.com/mafintosh/gunzip-maybe @v1.4.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.2 ↗ · + Follow

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

2 symbols 5 edges 3 files ⚖ MIT 0 documented · 0% 12 cross-repo links ● updated 6y ago★ 1082 open issues

Browse by type

⨍ Functions 2◇ Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 2

Languages

TypeScript100%

Modules by API surface

index.js2 symbols

For agents

$ claude mcp add --transport http codehub https://codehub.bot/mcp

One hosted endpoint, no key: your agent can search, read and trace mafintosh/gunzip-maybe and every other graph here. Cursor, Windsurf and other clients →

⬇ download graph artifact

Ask about this repo answers extend the page