Interface ZipReaderGetEntriesOptions

Represents the options passed to ZipReader#getEntries and ZipReader#getEntriesGenerator.

interface ZipReaderGetEntriesOptions {
    commentEncoding?: string;
    filenameEncoding?: string;
    decodeText(value: Uint8Array<ArrayBufferLike>, encoding: string): string;
    onprogress(
        progress: number,
        total: number,
        entry: EntryMetaData,
    ): Promise<void>;
}

Hierarchy (View Summary)

Properties

commentEncoding?: string

The encoding of the comment of the entry.

filenameEncoding?: string

The encoding of the filename of the entry.

Methods

  • Decodes the filename and the comment of the entry.

    Parameters

    • value: Uint8Array<ArrayBufferLike>

      The raw text value.

    • encoding: string

      The encoding of the text.

    Returns string

    The decoded text value or undefined if the raw text value should be decoded by zip.js.

  • 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.