Skip to content

Bun.deflateSync() 를 사용하여 Uint8Array 를 DEFLATE 로 압축하세요.

ts
const data = Buffer.from("Hello, world!");
const compressed = Bun.deflateSync("Hello, world!");
// => Uint8Array

const decompressed = Bun.inflateSync(compressed);
// => Uint8Array

더 유용한 유틸리티는 문서 > API > 유틸리티 를 참조하세요.

Bun by www.bunjs.com.cn 편집