Skip to content

createBrotliDecompressTransform

createBrotliDecompressTransform(maxOutputSize?): Transform

Defined in: node.d.ts:111

Create a Node.js stream.Transform for brotli decompression.

Uses Node.js stream.Transform to provide chunked brotli decompression 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).

number

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

Transform