前端使用 pako.js 构建 gzip 文件对象:
$ yarn add pako
$ yarn add --dev @types/pako
const binStr = pako.gzip(someString, { to: "string" });
const blob = new Blob([binStr], { type: "gzip" });
前端使用 pako.js 构建 gzip 文件对象:
$ yarn add pako
$ yarn add --dev @types/pako
const binStr = pako.gzip(someString, { to: "string" });
const blob = new Blob([binStr], { type: "gzip" });
评论区