Function: deflate()
May 16, 2026 ยท View on GitHub
Function: deflate()
Call Signature
deflate(
data:Uint8Array,opts:AsyncDeflateOptions,cb:FlateCallback):AsyncTerminable
Asynchronously compresses data with DEFLATE without any wrapper
Parameters
data
Uint8Array
The data to compress
opts
The compression options
cb
The function to be called upon compression completion
Returns
A function that can be used to immediately terminate the compression
Call Signature
deflate(
data:Uint8Array,cb:FlateCallback):AsyncTerminable
Asynchronously compresses data with DEFLATE without any wrapper
Parameters
data
Uint8Array
The data to compress
cb
The function to be called upon compression completion