A pass-through stream to keep data uncompressed in a ZIP archive.
+ new ZipPassThrough(filename: string): ZipPassThrough
Creates a pass-through stream that can be added to ZIP archives
| Name | Type | Description | 
|---|---|---|
| filename | string | The filename to associate with this data stream | 
Returns: ZipPassThrough
• 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
• 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
▸ push(chunk: Uint8Array, final?: boolean): void
Pushes a chunk to be added. If you are subclassing this with a custom compression algorithm, note that you must push data from the source file only, pre-compression.
| Name | Type | Description | 
|---|---|---|
| chunk | Uint8Array | The chunk to push | 
| final? | boolean | Whether this is the last chunk | 
Returns: void