Function: zipSync()

May 16, 2026 ยท View on GitHub

fflate


Function: zipSync()

zipSync(data: Zippable, opts?: ZipOptions): Uint8Array<ArrayBuffer>

Synchronously creates a ZIP file. Prefer using zip for better performance with more than one file.

Parameters

data

Zippable

The directory structure for the ZIP archive

opts?

ZipOptions

The main options, merged with per-file options

Returns

Uint8Array<ArrayBuffer>

The generated ZIP archive

Contents

  1. 1Parameters
  2. 1.1data
  3. 1.2opts?
  4. 2Returns