0.1.3 • Published 4 years ago

unzip-iterable v0.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

unzip-iterable

Thin wrapper around yauzl.

openZip()

function openZip(zipPath: string): AsyncIterable<ZipEntry>;

Opens a zip file as an async iterable of zip entries.

ZipEntry

Represents an entry in a zip file.

interface ZipEntry {
  info: yauzl.Entry;
  open(): PromiseLike<stream.Readable>;
}

info

Get info about the zip entry. See the yazl docs for more info.

open()

Get a readable stream for the contents of the entry.

ZipEntryStream

Implements an object-mode readable stream which will read all of the entries in a zip file.

class ZipEntryStream extends stream.Readable
0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago