const AdmZip = require('adm-zip'); const file = new AdmZip(); file.addLocalFile('./package.json'); //第二個node_modules 引數是zip 中目錄的路徑。
確定! 回上一頁