gunzipSync
failing (0 gzip length) on some npm package tarballs
#209
andrewbranch
started this conversation in
General
Replies: 1 comment 1 reply
-
That would be because those particular package tarballs have a bunch of zero padding at the end (for some reason?), and const chunks = [];
new fflate.Gunzip(chunk => chunks.push(chunk)).push(tarballData, true);
console.log("fflate streaming", Buffer.concat(chunks).length); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve found three npm packages that fail to gunzip with fflate (the resulting length is 0), but work with Node.js’s zlib. Here’s a full repro:
Beta Was this translation helpful? Give feedback.
All reactions