gunzip-file
Version:
Extract a source .gz archive to a specified destination file.
29 lines (19 loc) • 658 B
Markdown
file.
```
npm install gunzip-file
```
[](https://travis-ci.org/tyxla/gunzip-file)
Pass a source `.gz` file and a destination file and the `.gz` will be extracted to the target file.
``` js
gunzip('example.json.gz', 'example.json');
```
Additionally, you can pass a callback that will be executed when the extraction has completed.
``` js
gunzip('example.json.gz', 'example.json', function() {
console.log('This is called when the extraction is completed.');
});
```
MIT
Extract a source .gz archive to a specified destination