unzip-iterable
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i unzip-iterable

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

13 kB

Total Files

8

Last publish

Collaborators

  • gordonmleigh