MCPcopy Create free account
hub / github.com/Effect-TS/effect / zstdParams

Function zstdParams

packages/platform/node-shared/src/NodeHttpCompression.ts:43–44  ·  view source on GitHub ↗
(level: number | undefined)

Source from the content-addressed store, hash-verified

41}
42
43const zstdParams = (level: number | undefined): Zlib.ZstdOptions | undefined =>
44 level === undefined || level === 3 ? undefined : { params: { [Zlib.constants.ZSTD_c_compressionLevel]: level } }
45
46const compress = (
47 data: Uint8Array,

Callers 2

compressFunction · 0.85
compressTransformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected