Class Compress
Index
Constructors
constructor
- new
Compress (opts, cb?): Compress Creates a GZIP stream
Parameters
- opts: GzipOptions
The compression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Compress
- opts: GzipOptions
- new
Compress (cb?): Compress Creates a GZIP stream
Parameters
Optional
cb: 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
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array
Streaming GZIP compression