Interface EntryMetaData

Represents the metadata of an entry in a zip file (Core API).

interface EntryMetaData {
    comment: string;
    commentUTF8: boolean;
    compressedSize: number;
    compressionMethod: number;
    creationDate?: Date;
    directory: boolean;
    diskNumberStart: number;
    encrypted: boolean;
    externalFileAttribute: number;
    extraField?: Map<
        number,
        { data: Uint8Array<ArrayBufferLike>; type: number },
    >;
    filename: string;
    filenameUTF8: boolean;
    internalFileAttribute: number;
    lastAccessDate?: Date;
    lastModDate: Date;
    msDosCompatible: boolean;
    offset: number;
    rawComment: Uint8Array<ArrayBufferLike>;
    rawCreationDate?: number | bigint;
    rawExtraField: Uint8Array<ArrayBufferLike>;
    rawFilename: Uint8Array<ArrayBufferLike>;
    rawLastAccessDate?: number | bigint;
    rawLastModDate: number | bigint;
    signature: number;
    uncompressedSize: number;
    version: number;
    versionMadeBy: number;
    zip64: boolean;
    zipCrypto: boolean;
}

Hierarchy (View Summary)

Properties

comment: string

The comment of the entry.

commentUTF8: boolean

true if the comment is encoded in UTF-8.

compressedSize: number

The size of the compressed data in bytes.

compressionMethod: number

The compression method.

creationDate?: Date

The creation date.

directory: boolean

true if the entry is a directory.

diskNumberStart: number

The number of the disk where the entry data starts.

encrypted: boolean

true if the content of the entry is encrypted.

externalFileAttribute: number

The external file attribute (raw).

extraField?: Map<number, { data: Uint8Array<ArrayBufferLike>; type: number }>

The extra field.

filename: string

The filename of the entry.

filenameUTF8: boolean

true if the filename is encoded in UTF-8.

internalFileAttribute: number

The internal file attribute (raw).

lastAccessDate?: Date

The last access date.

lastModDate: Date

The last modification date.

msDosCompatible: boolean

true if internalFileAttribute and externalFileAttribute are compatible with MS-DOS format.

offset: number

The byte offset of the entry.

rawComment: Uint8Array<ArrayBufferLike>

The comment of the entry (raw).

rawCreationDate?: number | bigint

The creation date (raw).

rawExtraField: Uint8Array<ArrayBufferLike>

The extra field (raw).

rawFilename: Uint8Array<ArrayBufferLike>

The filename of the entry (raw).

rawLastAccessDate?: number | bigint

The last access date (raw).

rawLastModDate: number | bigint

The last modification date (raw).

signature: number

The signature (CRC32 checksum) of the content.

uncompressedSize: number

The size of the decompressed data in bytes.

version: number

The "Version" field.

versionMadeBy: number

The "Version made by" field.

zip64: boolean

true if the entry is using Zip64.

zipCrypto: boolean

true if the content of the entry is encrypted with the ZipCrypto algorithm.