mirror of https://github.com/codefeathers/w
w-cli spins up new WordBox instances. Check out https://github.com/codefeathers/WordBox
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
339 B
12 lines
339 B
7 years ago
|
var sevenZip = require('node-7z')
|
||
|
var Zip = new sevenZip()
|
||
|
|
||
|
const extract = (filename, destination) => {
|
||
|
Zip.extractFull(filenames, destination)
|
||
|
.progress((files) => console.log('Some files are extracted: %s', files))
|
||
|
.then(() => console.log('Extracting done!'))
|
||
|
.catch(function (err) => console.error(err))
|
||
|
}
|
||
|
|
||
|
module.exports = extract
|