1.4.2 • Published 4 years ago

gunzip-maybe v1.4.2

Weekly downloads
431,304
License
MIT
Repository
github
Last release
4 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-1814openvino-nodenimrod-data-downloadernovacap-componentsnpm-migrate-allnpmepmnpm-ipfs-clusternpm-all-packagesnpm-http-servernpm-cluster-follownpm-readnpm-synchronizemidgard-yarn-libnode-purescriptnode-pkg-confignode-bisectnode-compileplus.cloudpkgnameoakspolyglot-component-librarypolymer-clipollinateprax-cliprebuildify-cipackandextractpikamongoscope-importermonpoly-package-managermpmjsnavh-metamask-snaps-controllersmyfishparticle-cli-library-managerparticle-library-managerpneumatic-tubespnpm.jsprobot-kitprometheus-prebuilt@captalys-platform/jovian-cli@dependabot/yarn-lib@appa-ui/transformerbinary-cli-installbinder-build@digitalrakesh/jsuibkui-cli@chance/create@chance/create-remix@dimcheify/dimui@cloud-computer/yarnbro-lndbravia-subtitlesbretzel-startbrocoin-lnd@conneryn/cli@dapp-stack/ethereum@frattaro/unpkg-server@zalastax/nolb-gun@teidesu/slow-types-compilerwcjs-prebuilt@vscode/test-webatom-generatorzeus@antchain/myfish@arve.knudsen/go-libp2p-depautocodeautocode-cliautocode-jsarchive-stream-to-s3bcc@buzuli/aws@buzuli/s3@avsssai/unpkg-server@aws-amplify/cli-builder@aws-amplify/cli-internalazure-devops-work-items-winbeacon-cli@c6o/cli@c6o/daemon@c6o/kubefwdyraf@bb-cli/schematicsautoupdaty@aws-amplify/amplify-opensearch-simulatorcicero-coreacmetaace@weblium/create-weblium-app@wb310/utils@vercel/remix-run-dev
1.4.2

4 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.0

10 years ago