happy-opfs
    Preparing search index...

    Interface ZipFromUrlRequestInit

    Request init options for zipFromUrl.

    2.0.0

    interface ZipFromUrlRequestInit {
        filename?: string;
        keepEmptyBody?: boolean;
        level?: ZipLevel;
    }

    Hierarchy (View Summary)

    Index
    filename?: string

    The filename to use in the zip archive. Defaults to the basename of the URL pathname, or 'file' if the pathname is '/'.

    keepEmptyBody?: boolean

    Whether to keep empty response body (0 bytes) and create a zip with an empty file entry.

    • true: Empty response creates a zip with an empty file entry
    • false: Empty response returns an EmptyBodyError

    false

    level?: ZipLevel

    Compression level for the zip operation.

    • 0: No compression (store only) — best for already-compressed data
    • 1: Fastest compression
    • 6: Default compression (balanced)
    • 9: Best compression (slowest)

    Aligns with fflate's DeflateOptions.level.

    6

    2.1.0