Skip to content

createBrotliDecompressDictTransform

createBrotliDecompressDictTransform(dict, maxOutputSize?): Transform

Defined in: node.d.ts:172

Create a Node.js stream.Transform for brotli decompression with a custom dictionary.

Uses Node.js stream.Transform to provide chunked decompression with a custom dictionary, compatible with stream.pipeline() and pipe-based workflows.

The transform emits an error if the input ends before the compressed stream does, including empty input.

Output chunks hold at most readableHighWaterMark bytes (64 KiB by default, 16 KiB on Windows).

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

Custom dictionary (must match the one used for compression).

number

Maximum decompressed output size in bytes. Default is 256 MB.

Transform