Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

laptou/ia-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ia-zip

npm license

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.

API

Docs generated using docts

Source code: <>

Properties:

.currentDiskNumber number
.startDiskNumber number
.entriesOnCurrentDisk number
.totalEntries number
.centralDirectorySize number
.centralDirectoryOffset number
.comment string
.isZip64 boolean

Interface ZipEntryInfo

Source code: <>

Properties:

.vendor number
.version number
The ZIP specification version of this file.
.requiredVersion number
The minimum ZIP specification version required to
open this file.
.flags number
.compressionMethod (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined) | (undefined)
.modificationTime Date
.crc32 number
.compressedSize number
.uncompressedSize number
.fileName string
.fileComment string
.attributes number
.localHeaderOffset number

Class ZipReader

Source code: <>

Methods:

new( ) ZipReader <>
 ▪ data Buffer
new( ) ZipReader <>
 ▪ filename string
new( ) ZipReader <>
 ▪ stream Stream
.ready( ) Promise<void> <>
.readInfo( ) Promise<ZipCentralDirectoryInfo> <>
.readEntries( ) AsyncIterableIterator<ZipEntryInfo> <>
.readEntry( ) Promise<Readable> <>
 ▪ entry ZipEntryInfo
.close( ) Promise<void> <>

About

Better ZIP parsing for Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published