kibertoad / unzipomatic

Modern unzipping library for Node.js
MIT License
3 stars 0 forks source link

feat(entry): move openReadStream to Entry & add getBuffer to Entry #28

Closed H4ad closed 1 month ago

H4ad commented 4 months ago

Changes

Moved openReadStream to Entry, I also renamed that method to getStream and also added getBuffer.

I added content test to unzipToGenerator and added more errors in different cases.

I also removed the options to get the content of the file, being honest, we had too many options that I think was not useful.

If the user wants to get the content of the buffer, of course, they want the content to be uncompressed and also decrypted if possible, at least for me, it didn't make sense to throw an error during those cases. But one thing we should do in the future is add docs about how to decrypt the content of the zip file (and also decompress if is also compressed).

Checklist