Verwenden Sie Bun.deflateSync(), um eine Uint8Array mit DEFLATE zu komprimieren.
ts
const data = Buffer.from("Hello, world!");
const compressed = Bun.deflateSync("Hello, world!");
// => Uint8Array
const decompressed = Bun.inflateSync(compressed);
// => Uint8ArraySiehe Docs > API > Utils für weitere nützliche Utilities.