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
[x] Apply one of following labels; major, minor, patch or skip-release
[x] I've updated the documentation, or no changes were necessary
[x] I've updated the tests, or no changes were necessary
Changes
Moved
openReadStream
toEntry
, I also renamed that method togetStream
and also addedgetBuffer
.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 alsodecrypted
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
major
,minor
,patch
orskip-release