chickadee » zstd » zstd-compress

zstd-compress src #!key (level 3)procedure

Compress the string or blob src, returning the entire compressed frame as a string. This is faster than using ports but may not be suitable for large inputs.

If level is supplied, it sets the compression level as documented by man zstd, and should be an integer in the range [1-19].