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

    Interface EntryGetDataCheckPasswordOptions

    Represents the options passed to Entry#getData and {@link ZipFileEntry}.get*.

    interface EntryGetDataCheckPasswordOptions {
        checkPasswordOnly?: boolean;
        checkSignature?: boolean;
        passThrough?: boolean;
        password?: string;
        preventClose?: boolean;
        rawPassword?: Uint8Array<ArrayBuffer>;
        signal?: AbortSignal;
        transferStreams?: boolean;
        useCompressionStream?: boolean;
        useWebWorkers?: boolean;
        onend(computedSize: number): Promise<void>;
        onprogress(progress: number, total: number): Promise<void>;
        onstart(total: number): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    checkPasswordOnly?: boolean

    true to check only if the password is valid.

    false
    
    checkSignature?: boolean

    true to check the signature of the entry.

    false
    
    passThrough?: boolean

    true to read the data as-is without decompressing it and without decrypting it.

    password?: string

    The password used to decrypt the content of the entry.

    preventClose?: boolean

    true to prevent closing of Writer#writable when calling Entry#getData.

    false
    
    rawPassword?: Uint8Array<ArrayBuffer>

    The password used to encrypt the content of the entry (raw).

    signal?: AbortSignal

    The AbortSignal instance used to cancel the decompression.

    transferStreams?: boolean

    true to transfer streams to web workers when decompressing data.

    true
    
    useCompressionStream?: boolean

    true to use the native API CompressionStream/DecompressionStream to compress/decompress data.

    true
    
    useWebWorkers?: boolean

    true to use web workers to compress/decompress data in non-blocking background processes.

    true
    

    Methods

    • The function called when ending compression/decompression.

      Parameters

      • computedSize: number

        The total number of bytes (computed).

      Returns Promise<void>

      An empty promise or undefined.

    • The function called during compression/decompression.

      Parameters

      • progress: number

        The current progress in bytes.

      • total: number

        The total number of bytes.

      Returns Promise<void>

      An empty promise or undefined.

    • The function called when starting compression/decompression.

      Parameters

      • total: number

        The total number of bytes.

      Returns Promise<void>

      An empty promise or undefined.