MAIDR JavaScript API
    Preparing search index...

    Interface ZipArchive

    A zip archive whose central directory has been read.

    interface ZipArchive {
        names: readonly string[];
        has: (name: string) => boolean;
        bytes: (name: string) => Promise<Uint8Array<ArrayBufferLike> | undefined>;
        text: (name: string) => Promise<string | undefined>;
    }
    Index

    Properties

    Properties

    names: readonly string[]

    Every file's name, in the order the directory lists them.

    has: (name: string) => boolean

    Whether the archive holds a file, its name compared without case.

    bytes: (name: string) => Promise<Uint8Array<ArrayBufferLike> | undefined>

    A file's contents, inflated, or undefined when the archive has no such file. Rejects with a ZipError when the file cannot be read.

    text: (name: string) => Promise<string | undefined>

    A file's contents as UTF-8 text; see ZipArchive.bytes.