1.0.2 • Published 8 years ago
gzip-uncompressed-size v1.0.2
gzip-uncompressed-size
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.
Install
$ npm install --save gzip-uncompressed-sizeUsage
const gzipUncompressedSize = require('gzip-uncompressed-size');
gzipUncompressedSize.fromFile('my/compressed/file.gz', (error, uncompressedSize) => {
if (error) {
throw error;
}
console.log(uncompressedSize);
});License
MIT