TyphonJS Runtime Library (FVTT) 0.3.0
  • #runtime/data/compress
  • zip

Function zip

  • zip(
        data: AsyncZippable,
        opts: AsyncZipOptions,
        cb: FlateCallback,
    ): AsyncTerminable
  • Asynchronously creates a ZIP file

    Parameters

    • data: AsyncZippable

      The directory structure for the ZIP archive

    • opts: AsyncZipOptions

      The main options, merged with per-file options

    • cb: FlateCallback

      The callback to call with the generated ZIP archive

    Returns AsyncTerminable

    A function that can be used to immediately terminate the compression

  • zip(data: AsyncZippable, cb: FlateCallback): AsyncTerminable
  • Asynchronously creates a ZIP file

    Parameters

    • data: AsyncZippable

      The directory structure for the ZIP archive

    • cb: FlateCallback

      The callback to call with the generated ZIP archive

    Returns AsyncTerminable

    A function that can be used to immediately terminate the compression

Settings

Member Visibility
Demo - Essential Svelte ESM
TyphonJS Runtime Library (FVTT) 0.3.0