gzip-uncompressed-size

1.0.2 • Public • Published

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

/gzip-uncompressed-size/

    Package Sidebar

    Install

    npm i gzip-uncompressed-size

    Weekly Downloads

    7

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • jviotti