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.
11 lines
329 B
11 lines
329 B
var sevenZip = require('node-7z')
|
|
var Zip = new sevenZip()
|
|
|
|
const extract = (filename, destination) => {
|
|
Zip.extractFull(filename, destination)
|
|
.progress((files) => console.log('Some files are extracted: %s', files))
|
|
.then(() => console.log('Extracting done!'))
|
|
.catch((err) => console.error(err))
|
|
}
|
|
|
|
module.exports = extract
|
|
|