node-archiver
node-archiver copied to clipboard
support appending to existing archives
this maybe be moved to v0.7 but the plan is to allow one to import an existing stream that contains zip data to be appended to.
A really nice feature would be to be able to clone an Archiver instance. The use case for this would be if you are dynamically generating archives where most of the files are constant, but some change. You'd append the constant ones initially, then every time a new archive needed to be generated, you'd clone it and append the changed files.
just not sure how this would function. would have to store and pull from buffers vs streaming. that could be quite a task.
Hi! I would really benefit from this feature, just wondering how soon this would be implemented if it's still in plans?
this should be possible in a few months time once compress-commons gets import/parse ability. still exploring potential implementation ideas.
Sounds like a cool idea. I don't need it but :+1: anyway!
Is there any update or workaround for this? I was hoping I could abandon adm-zip and use node-archiver instead but the lack of appending files to an existing zip archive is currently stopping me from doing so.
:+1: This would be great! Would it also be possible to replace existing files in the zip?
+1
+1
+1
+1
I also would ,like to avoid the adm-zip issue, see https://github.com/cthackers/adm-zip/issues/186
i think the fastest path to doing something like this would be use a library that unzips and then having an adapter that converts it to archiver methods. im not sure if this will be included in archiver just yet but im happy to include an example in the repo if someone comes up with a solution for time being.
hi sorry if its already addressed, but just wanted to confirm, if its possible to now update a existing zip files with new files and keep existing ones as it is.
Thanks
Hi @aksharj can you tell us how do it?
Thx
Hi @gigaga,i am also looking for a solution.
@aksharj Hi, finally by using JSZIP I was able to update a zip file :)
@gigaga - do you have an example you could post?