• 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

    • Optionalopts: ZipOptions

      The main options, merged with per-file options

    Returns Uint8Array

    The generated ZIP archive