Interface GetEntriesOptions

Represents options passed to the constructor of ZipReader, ZipReader#getEntries and ZipReader#getEntriesGenerator.

interface GetEntriesOptions {
    commentEncoding?: string;
    filenameEncoding?: string;
    decodeText?(value: Uint8Array, encoding: string): string;
}

Hierarchy (view full)

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

      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.