Skip to content

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

License

Notifications You must be signed in to change notification settings

stordata/node-gzip-uncompressed-size

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published