Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyxla/gunzip-file
Extract a source .gz archive to a specified destination file.
https://github.com/tyxla/gunzip-file
Last synced: about 1 month ago
JSON representation
Extract a source .gz archive to a specified destination file.
- Host: GitHub
- URL: https://github.com/tyxla/gunzip-file
- Owner: tyxla
- License: mit
- Created: 2015-11-30T21:44:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-01T15:01:49.000Z (about 4 years ago)
- Last Synced: 2024-11-14T13:28:51.721Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 12
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gunzip-file
Extract a source .gz archive to a specified destination file.
```
npm install gunzip-file
```[![Build Status](https://travis-ci.org/tyxla/gunzip-file.svg)](https://travis-ci.org/tyxla/gunzip-file)
## Usage
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.');
});
```## License
MIT