@zip.js/zip.js
    Preparing search index...

    Interface ZipReaderGetEntriesOptions

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

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

    Hierarchy (View Summary)

    Index

    Properties

    commentEncoding?: string

    The encoding of the comment of the entry.

    filenameEncoding?: string

    The encoding of the filename of the entry.

    Methods

    • The function called for decoding the filename and the comment of the entry.

      Parameters

      • value: Uint8Array<ArrayBuffer>

        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.