Information about a file to be extracted from a ZIP archive

interface UnzipFileInfo {
    compression: number;
    name: string;
    originalSize: number;
    size: number;
}

Properties

compression: number

The compression format for the data stream. This number is determined by the spec in PKZIP's APPNOTE.txt, section 4.4.5. For example, 0 = no compression, 8 = deflate, 14 = LZMA. If the filter function returns true but this value is not 8, the unzip function will throw.

name: string

The name of the file

originalSize: number

The original size of the file

size: number

The compressed size of the file