Interface ZipWriterCloseOptions

Represents the options passed to ZipWriter#close.

interface ZipWriterCloseOptions {
    preventClose?: boolean;
    zip64?: boolean;
    onprogress(
        progress: number,
        total: number,
        entry: EntryMetaData,
    ): Promise<void>;
}

Hierarchy (View Summary)

Properties

Methods

Properties

preventClose?: boolean

true to prevent closing of WritableWriter#writable.

false
zip64?: boolean

true to use Zip64 to write the entries directory.

false

Methods

  • The function called each time an entry is read/written.

    Parameters

    • progress: number

      The entry index.

    • total: number

      The total number of entries.

    • entry: EntryMetaData

      The entry being read/written.

    Returns Promise<void>

    An empty promise or undefined.