Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ZipDeflate

Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate for better performance

class ZipDeflate implements ZipInputFile {
constructor(filename: string, opts?: DeflateOptions);
private d;
attrs?: number;
comment?: string;
compression: number;
crc: number;
extra?: Record<number, Uint8Array>;
filename: string;
flag:
| 0
| 1
| 2
| 3;
mtime?: GzipOptions["mtime"];
os?: number;
size: number;
 
process(chunk: Uint8Array, final: boolean): void;
push(chunk: Uint8Array, final?: boolean): void;
}

§Implements

§Constructors

§
new ZipDeflate(filename: string, opts?: DeflateOptions)
[src]

Creates a DEFLATE stream that can be added to ZIP archives

@param filename

The filename to associate with this data stream

@param opts

The compression options

§Properties

§
attrs: number
[src]
§
comment: string
[src]
§
compression: number
[src]
§
crc: number
[src]
§
extra: Record<number, Uint8Array>
[src]
§
filename: string
[src]
§
flag: 0 | 1 | 2 | 3
[src]
§
mtime: GzipOptions["mtime"]
[src]
§
os: number
[src]
§
size: number
[src]

§Methods

§
process(chunk: Uint8Array, final: boolean): void
[src]
§
push(chunk: Uint8Array, final?: boolean): void
[src]

Pushes a chunk to be deflated

@param chunk

The chunk to push

@param final

Whether this is the last chunk