Closed AlttiRi closed 1 year ago
fflate
's philosophy is to avoid validating or checking input and to not allow shorthands except where it yields no impact on bundle size, so this is not going to be implemented.
However, I am currently working on ezzip
, an fflate
wrapper with convenience features like these and modern APIs. I will take this feature request into consideration there and update here once it's published.
Also a wrapper for zipping a directory with a few lines of codes would be useful for Node.js.
Something like this:
const zip = new fflate.ZipSync();
zip.add({path: "./dir"});
zip.write("./result.zip");
JSZip has a short and clear example.
I think it would convenient if this lib supports this approach from the box:
Optionally, the same approach for async version: