1.4.2 • Published 5 years ago

gunzip-maybe v1.4.2

Weekly downloads
431,304
License
MIT
Repository
github
Last release
5 years ago

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

react-static-jurosh@determapp/serve-tgz@determapp/viewer-serverweatherhive-snodas@kibalabs/react-static@ukidev/file-utilsproject-startgo-ipfs-dep-agentprotodefc-prebuiltfolderbeammembership-system@everything-registry/sub-chunk-1814esbuild-runjoyer-cli-demo@wacoco/ytbvtapctar-checksumtar-extracttar-parse-onetar-to-ziptar-transformtar2extworkers-factorywpa-clispawmstartfromtesting-storybooktestrigor-clisux-clitg-app-clivo-unpkgvicatia-cli@xydjs/react-router-dev@digitalrakesh/jsui@dimcheify/dimui@docker/actions-toolkit@conneryn/cli@cambrianone/camb-client@buzuli/s3@buzuli/aws@rstacruz/pnpmjaguarjeb.jsipfs-interopjsreport-nexekartjsos-clijsbot-patchqlipfs-cluster-serviceipfs-cluster-ctlkatflix@project-lakechain/tar-inflate-processoranci-reactzzzxxxyyy321123kodify-nodejoyer-clisprucebot-clisunday-clistoic-portalsuperflaretype-libaryuapmtinnertfjs-datasets-addonstldrawlignintmake-filetinypmtry-prisma@arve.knudsen/go-libp2p-dep@appa-ui/transformer@antchain/myfish@andrewosh/docker-prebuilt@avsssai/unpkg-server@alancnet/yarn@aws-amplify/amplify-opensearch-simulator@backstage-community/plugin-scaffolder-backend-module-odo@aws-amplify/cli-builder@aws-amplify/cli-internal@beauraines/node-helpers@bb-cli/schematics@captalys-platform/jovian-cli@c6o/cli@c6o/daemon@c6o/kubefwd@chance/create@chance/create-remix@cloud-computer/yarn@kumori/kam@codingdud/coolicons@dependabot/yarn-lib@dapp-stack/ethereum@dario-hacking/remix-run-devyaarhyarn-zeoyrafzeuswcjs-prebuiltwebtask-tarball-compilerunity-package-extract
1.4.2

5 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.0.0

11 years ago