kriskowal/zip — Issue #4: Memory efficient unzip
Author: net147
Created: 2012-01-12 06:17:13+00:00
State: open

It would be nice to support unzipping large files without using too much memory. To do this, the Reader could support using a file descriptor instead of a buffer which would use fs.fstatSync(fd).size to get file size and fs.readSync(fs, buffer, 0, length, this._offset) to read from file.

To handle large files in an archive, the iterator should not decompress the data. It will just have metadata and allow the callback to call a functions that save the data to a file, read it to a buffer or ignore it as required.