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

AsyncZipDeflate

Asynchronous streaming DEFLATE compression for ZIP archives

class AsyncZipDeflate 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;
terminate: AsyncTerminable;
 
process(chunk: Uint8Array, final: boolean): void;
push(chunk: Uint8Array, final?: boolean): void;
}

§Implements

§Constructors

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

Creates an asynchronous 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