zip the folder using built-in modules
问题 Edit -> Can someone suggest edits to my answer, for instance I'm not sure if exec is better or spawn ? Is it possible to zip the directory/folder with it's contents using zlib and other built-in modules? I'm looking for a way to do it without external dependencies. The other option is to run local processes on mac, windows etc. for zip, tar etc., I'm sure there are command line utilities on either of the operating system This is not an answer but it's somehow related to what I'm looking for,