Class Compress
Index
Constructors
constructor
- new
Compress (opts, cb?): Compress Creates a GZIP stream
Parameters
- opts: GzipOptions
The compression options
Optionalcb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Compress
- opts: GzipOptions
- new
Compress (cb?): Compress Creates a GZIP stream
Parameters
Optionalcb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Compress
Methods
flush
push
- push(chunk, final?): void
Pushes a chunk to be GZIPped
Parameters
- chunk: Uint8Array
The chunk to push
Optionalfinal: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array
Streaming GZIP compression