Class: Unzlib
May 16, 2026 ยท View on GitHub
Class: Unzlib
Streaming Zlib decompression
Constructors
Constructor
new Unzlib(
opts:UnzlibStreamOptions,cb?:FlateStreamHandler):Unzlib
Creates a Zlib decompression stream
Parameters
opts
The decompression options
cb?
The callback to call whenever data is inflated
Returns
Unzlib
Constructor
new Unzlib(
cb?:FlateStreamHandler):Unzlib
Creates a Zlib decompression stream
Parameters
cb?
The callback to call whenever data is inflated
Returns
Unzlib
Properties
ondata
ondata:
FlateStreamHandler
The handler to call whenever data is available
Methods
push()
push(
chunk:Uint8Array,final?:boolean):void
Pushes a chunk to be unzlibbed
Parameters
chunk
Uint8Array
The chunk to push
final?
boolean
Whether this is the last chunk
Returns
void