1.0.2 • Published 7 years ago

gzip-uncompressed-size v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

gzip-uncompressed-size

Determine the estimated uncompressed size from a GZIP file (uses ISIZE)

npm version Build Status Build status

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-size

Usage

const gzipUncompressedSize = require('gzip-uncompressed-size');

gzipUncompressedSize.fromFile('my/compressed/file.gz', (error, uncompressedSize) => {
  if (error) {
    throw error;
  }

  console.log(uncompressedSize);
});

License

MIT