Skip to content

createZstdCompressDictTransform

createZstdCompressDictTransform(dict, level?): Transform

Defined in: node.d.ts:124

Create a Node.js stream.Transform for zstd compression with a pre-trained dictionary.

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

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

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

Pre-trained dictionary (from zstdTrainDictionary).

number

Compression level (1-22, or negative for fast mode). Default is 3.

Transform