// 请把代码文本粘贴到下方(请勿用图片代替代码)
const downLoad = () => { const stream = fs.createWriteStream('./downLoad/abc.zip'); request('https://xxxxx.com/downLoad/abc.zip').pipe(stream).on('close', () => { const unzip = new adm_zip('./downLoad/abc.zip'); unzip.extractAllTo("./downLoad", /*overwrite*/true); }); }
慕斯王
相关分类