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

Function unzip

  • unzip(
        data: Uint8Array,
        opts: AsyncUnzipOptions,
        cb: UnzipCallback,
    ): AsyncTerminable
  • Asynchronously decompresses a ZIP archive

    Parameters

    • data: Uint8Array

      The raw compressed ZIP file

    • opts: AsyncUnzipOptions

      The ZIP extraction options

    • cb: UnzipCallback

      The callback to call with the decompressed files

    Returns AsyncTerminable

    A function that can be used to immediately terminate the unzipping

  • unzip(data: Uint8Array, cb: UnzipCallback): AsyncTerminable
  • Asynchronously decompresses a ZIP archive

    Parameters

    • data: Uint8Array

      The raw compressed ZIP file

    • cb: UnzipCallback

      The callback to call with the decompressed files

    Returns AsyncTerminable

    A function that can be used to immediately terminate the unzipping

Settings

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