daily-share
daily-share copied to clipboard
jszip 解压文件 & 压缩文件(2022-7-1)
const JSZip = require('jszip')
const fs = require('fs')
const zip = new JSZip();
fs.readFile("./projfront_taro-1.1.1.zip", function(err, data) {
if (err) throw err;
zip.loadAsync(data).then(function (zip) {
console.log(zip, 'zip')
});
});
关于压缩