1.0.1 • Published 6 years ago

gunzip-stream v1.0.1

Weekly downloads
1,192
License
MIT
Repository
github
Last release
6 years ago

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