使用 Bun.deflateSync() 用 DEFLATE 壓縮 Uint8Array。
ts
const data = Buffer.from("Hello, world!");
const compressed = Bun.deflateSync("Hello, world!");
// => Uint8Array
const decompressed = Bun.inflateSync(compressed);
// => Uint8Array請參閱 文檔 > API > Utils 獲取更多有用的工具函數。