Bun.gzipSync() 通过 gzip 压缩 [Uint8Array]。
请参阅 文档 > API > 工具 了解更多的实用工具。
Bun.gzipSync() 通过 gzip 压缩 [Uint8Array]。
const data = Buffer.from("Hello, world!");
const compressed = Bun.gzipSync(data);
// => Uint8Array
const decompressed = Bun.gunzipSync(compressed);
// => Uint8Array