A ZIP archive decompression stream that emits files as they are discovered

Constructors

Methods

Properties

Constructors

  • Creates a ZIP decompression stream

    Parameters

    • Optionalcb: UnzipFileHandler

      The callback to call whenever a file in the ZIP archive is found

    Returns Unzip

Methods

  • Pushes a chunk to be unzipped

    Parameters

    • chunk: Uint8Array

      The chunk to push

    • Optionalfinal: boolean

      Whether this is the last chunk

    Returns any

  • Registers a decoder with the stream, allowing for files compressed with the compression type provided to be expanded correctly

    Parameters

    Returns void

Properties

The handler to call whenever a file is discovered