The CompressionStream interface of the Compression Streams API is an API for compressing a stream of data.
CompressionStream
MDN Reference