mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
403 B
403 B
name
| name |
|---|
| Compress and decompress data with DEFLATE |
Use Bun.deflateSync() to compress a Uint8Array with DEFLATE.
const data = Buffer.from("Hello, world!");
const compressed = Bun.deflateSync("Hello, world!");
// => Uint8Array
const decompressed = Bun.inflateSync(compressed);
// => Uint8Array
See Docs > API > Utils for more useful utilities.