Skip to content

brotliCompressWithDictAsync

brotliCompressWithDictAsync(data, dict, quality?): Promise<Buffer<ArrayBufferLike>>

Defined in: index.d.ts:1217

Asynchronously compress data using Brotli with a custom dictionary.

The same dictionary must be used for decompression via brotliDecompressWithDict. Quality is an integer from 0 (fastest) to 11 (best compression). Default is 6.

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

number | null

Promise<Buffer<ArrayBufferLike>>