https://github.com/tpkn/unzipomania
Node.js module for recursive unpacking archives
https://github.com/tpkn/unzipomania
Last synced: 3 months ago
JSON representation
Node.js module for recursive unpacking archives
- Host: GitHub
- URL: https://github.com/tpkn/unzipomania
- Owner: tpkn
- License: mit
- Created: 2018-01-24T06:16:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-01T00:59:04.000Z (over 5 years ago)
- Last Synced: 2024-04-23T20:54:12.864Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unzipomania [](https://www.npmjs.org/package/unzipomania)
Node.js module for recursive unpacking archives
Unpacks all archives including nested ones (optional).
## Installation
```bash
npm install unzipomania
```## API
```javascript
await Unzipomania(input[, output_folder, options])
```### input
**Type**: _String_|_Array_
Single file or array of files### output_folder
**Type**: _String_
Unzip folder### options.deep
**Type**: _Boolean_
**Default**: `false`
Unpack nested archives### options.remove_source
**Type**: _Boolean_
**Default**: `false`
Delete source zip file## Usage
```javascript
const Unzipomania = require('unzipomania');let file1 = './unzipomania/zip1.zip';
let file2 = './unzipomania/zip2.zip';
let file3 = './unzipomania/zip3.zip';
let output = './unzipomania/unzip/';(async () => {
try {await Unzipomania([ file1, file2, file3 ], output, { remove_source: true });
}catch(err){
console.log(err);
}
})()```
## Changelog
#### v2.1.0 (2019-07-16):
- faster and more stable
- fixed bugs#### v2.0.1 (2018-08-26):
- fixed bugs#### v1.x.x (2018-03-03):
- Moved from `yauzl` to `decompress` module
- Fixed incorrect finish error