Since the original logical fork by crx2ff, I updated the CRX parser to support the CRX3 format and to fix a flaw in the calcLength function. Someone has already sent a PR for the CRX3 format (#5), so you could merge that and add another patch to fix the calcLength flaw: https://github.com/Rob--W/crxviewer/commit/420214409ed62aa88de877efbd45f0cf5cd9cb3a
The
crxToZip
function in your library is copied from crx2ff. While crx2ff credits the original source of the logic (https://github.com/Rob--W/crxviewer/blob/master/src/lib/crx-to-zip.js), your library does not. I suggest that you add a link to the original source of the logic for future reference and to avoid propagation of errors.Since the original logical fork by crx2ff, I updated the CRX parser to support the CRX3 format and to fix a flaw in the
calcLength
function. Someone has already sent a PR for the CRX3 format (#5), so you could merge that and add another patch to fix thecalcLength
flaw: https://github.com/Rob--W/crxviewer/commit/420214409ed62aa88de877efbd45f0cf5cd9cb3a