unzipomania
v2.1.1
Published
Node.js module for recursive unpacking archives
Downloads
2
Maintainers
Readme
Unzipomania
Node.js module for recursive unpacking archives
Unpacks all archives including nested ones (optional).
Installation
npm install unzipomania
API
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
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
todecompress
module - Fixed incorrect finish error