This package provides an API for reading and writing ZIP files.
Note: this package is a work in progress. Right now, you can only read zip files.
Docs generated using docts
Interface
ZipCentralDirectoryInfo
Source code:
<>
Properties:
.currentDiskNumber
number
.startDiskNumbernumber
.entriesOnCurrentDisknumber
.totalEntriesnumber
.centralDirectorySizenumber
.centralDirectoryOffsetnumber
.commentstring
.isZip64boolean
Interface
ZipEntryInfo
Source code:
<>
Properties:
.vendor
number
.versionnumber
The ZIP specification version of this file.
.requiredVersionnumber
The minimum ZIP specification version required to
open this file.
.flagsnumber
.compressionMethod(undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined)
.modificationTimeDate
.crc32number
.compressedSizenumber
.uncompressedSizenumber
.fileNamestring
.fileCommentstring
.attributesnumber
.localHeaderOffsetnumber
Class
ZipReader
Source code:
<>
Methods:
new( ) ⇒
ZipReader
<>
▪ dataBuffer
new( ) ⇒ZipReader
<>
▪ filenamestring
new( ) ⇒ZipReader
<>
▪ streamStream
.ready( ) ⇒Promise<void>
<>
.readInfo( ) ⇒Promise<ZipCentralDirectoryInfo>
<>
.readEntries( ) ⇒AsyncIterableIterator<ZipEntryInfo>
<>
.readEntry( ) ⇒Promise<Readable>
<>
▪ entryZipEntryInfo
.close( ) ⇒Promise<void>
<>