Any library to compress/decompress JSON on Edge CF Worker?

Hi I noticed I cannot use this library on a CloudFlare Worker: https://github.com/mongodb-js/zstd Any alternative I can use to compress/decompress Jsons on a CloudflareWorker?
GitHub
GitHub - mongodb-js/zstd: A Zstd Compression Library
A Zstd Compression Library. Contribute to mongodb-js/zstd development by creating an account on GitHub.
1 Reply
Chaika
Chaika4w ago
Cloudflare Workers support compression streams: https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API, which support gzip or deflate