un-gzip
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

un-gzip

Extract a source .gz archive to a specified destination file.

npm install un-gzip

Usage

Pass a source .gz file and a destination file and the .gz will be extracted to the target file.

import { unzip } from 'un-gzip'

unzip('example.json.gz', 'example.json');

Additionally, you can pass a callback that will be executed when the extraction has completed.

unzip('example.json.gz', 'example.json', function() {
	console.log('This is called when the extraction is completed.');
});

License

MIT

/un-gzip/

    Package Sidebar

    Install

    npm i un-gzip

    Weekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.26 kB

    Total Files

    5

    Last publish

    Collaborators

    • alexfigliolia