saving a JS object to a zip archive and extracting arbitrary keys
Is there a way to create a zip archive from an object like below, an archive to which I can add more keys or extract arbitrary keys without unzipping the entire archive to disk first?
Directory name is not maintained during zip and unzip when they contain an extension
I am trying to zip an app directory via node.js (actually is an electron app). The name of the directory is “MovieSwift.app” (it’s an iOS app) using the “zip-local” package.
But when I unzip it afterwards, to see if it contains the files, the directory is named “MovieSwift”, which is a problem in my case, because the unzipping part is done by some external API that relies on the zipped directory having a .app extension.