gunzip-stream

Gunzip a stream if needed

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gunzip-stream
101.0.15 years ago5 years agoMinified + gzip package size for gunzip-stream in KB

Readme

gunzip-stream npm version Build Status
Gunzip a stream if needed

Transform stream which acts as zlib.Gunzip if input is gzipped. Fallback otherwise to a simple PassThrough stream.

Install

$ npm install gunzip-stream

Usage

const fs = require('http');
const {createGunzip} = require('gunzip-stream');

fs.createReadStream('/path/to/file.gz.or.not')
  .pipe(createGunzip())
  .pipe(process.stdout)

License

MIT