First, install jszip by npm install jszip, then paste the following code
Then you can use genZip("folder/to/zip","abc.zip") and extractZip("abc.zip","folder/to/extract/to") as promises to zip/unzip your folder
You can also pass an Array to genZip's first argument to zip multiple files and folders
