thejoshwolfe / yauzl

yet another unzip library for node
MIT License
736 stars 80 forks source link

Async RandomAccessReader and zips within zips #100

Open brucehappy opened 5 years ago

brucehappy commented 5 years ago

Add support for an asynchronous RandomAccessReader, and using that support create a reader implementation for stored entries within a zip file, thereby supporting stored zips within zips. Add a test for the new classes based on the existing range-test.

Related to #89

brucehappy commented 5 years ago

My main goal was backwards compatibility with existing code and RandomAccessReader implementations while adding support for accessing a stored zip within a zip without having to read the whole thing into a buffer or temp file. Looking forward to seeing your approach to solving the problem.