包:unzip
var
extract =
unzip.
Extract({
path:
'C:/Users/19area_h/Desktop/down'(解压后存放位置) });
extract.
on(
'error',
function(
err) {
console.
log(
"error++++++++++++++++++++++");
console.
log(
err);
//解压异常处理
});
extract.
on(
'finish',
function() {
console.
log(
"解压完成!!");
//解压完成处理
});
fs.
createReadStream(
'C:/Users/19area_h/Desktop/down/logonew.zip').
pipe(
extract);