Asynchronous streaming DEFLATE compression for ZIP archives
+ new AsyncZipDeflate(filename: string, opts?: DeflateOptions): AsyncZipDeflate
Creates a DEFLATE stream that can be added to ZIP archives
| Name | Type | Description |
|---|---|---|
filename |
string | The filename to associate with this data stream |
opts? |
DeflateOptions | The compression options |
Returns: AsyncZipDeflate
• Optional attrs: number
Implementation of ZipInputFile.attrs
• Optional comment: string
Implementation of ZipInputFile.comment
• compression: number
Implementation of ZipInputFile.compression
• crc: number
Implementation of ZipInputFile.crc
• Optional extra: Record<number, Uint8Array>
Implementation of ZipInputFile.extra
• filename: string
Implementation of ZipInputFile.filename
• flag: 0 | 1 | 2 | 3
Implementation of ZipInputFile.flag
• Optional mtime: GzipOptions[\"mtime\"]
Implementation of ZipInputFile.mtime
• ondata: AsyncFlateStreamHandler
Implementation of ZipInputFile.ondata
• Optional os: number
Implementation of ZipInputFile.os
• size: number
Implementation of ZipInputFile.size
• terminate: AsyncTerminable
Implementation of ZipInputFile.terminate
▸ process(chunk: Uint8Array, final: boolean): void
| Name | Type |
|---|---|
chunk |
Uint8Array |
final |
boolean |
Returns: void
▸ push(chunk: Uint8Array, final?: boolean): void
Pushes a chunk to be deflated
| Name | Type | Description |
|---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the last chunk |
Returns: void