EvanOxfeld / node-unzip

node.js cross-platform unzip using streams
MIT License
614 stars 343 forks source link

Added support for extracting 7z file format #70

Closed AnkurMali closed 9 years ago

AnkurMali commented 9 years ago

7z (store compression) format was unsupported earlier. This PR makes the module compatible with such files. Additionally, this also requires stream.Writable safely for maximum compatibility with node versions.

Was throwing the following error

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: invalid literal/length code
    at Zlib._binding.onerror (zlib.js:295:17)

Also fixed two other issues Fixes #47 Fixes #60

Also added relevant test cases.