ensure-gunzip
v0.0.1
Published
Unzips gzipped streams to ensure that the content being read is always uncompressed
Downloads
4,143
Readme
ensure-gunzip
Detects gzip compression and makes sure that a stream always gets unzipped if needed.
Install
npm install --save ensure-gunzip
Use
var ensureGunzip = require('ensure-gunzip');
var mysteriousStream = getStreamSomehow();
var stream = ensureGunzip(mysteriousStream);
// read plain data from `stream`