Determine the estimated uncompressed size from a GZIP file (uses ISIZE)
This module returns the GZIP ISIZE
, which according to the specification,
contains the size of the original (uncompressed) input. It has been documented
that the size reported is not 100% accurate.
$ npm install --save gzip-uncompressed-size
const gzipUncompressedSize = require('gzip-uncompressed-size');
gzipUncompressedSize.fromFile('my/compressed/file.gz', (error, uncompressedSize) => {
if (error) {
throw error;
}
console.log(uncompressedSize);
});
MIT