fs.createReadStream("archiver-unzip.zip").pipe( unzip.Extract({ path: "unarchive" }) ); 更多 API https://github.com/archiverjs
我这里主要是用到了一个库叫archiver,它的官网是https://www.archiverjs.com/,代码的一些细节我已经写了注释了,这里就不过多介绍,我大致的思路是,在文件构建完以后,定义下要打包的目录