Execute .Then() promise NodeJS
问题 I am trying to figure out how to call a Promise using ".then" so I can continue performing other functions on the return Promise output. I have confirmed the function being used works as expected, but after watching videos and other SO examples am still having a hard time getting this working. See below snippet: const fs = require('fs'); const JSZip = require('jszip'); const directoryFile = fs.readdirSync('./zipped'); //console.log(directoryFile); var zip = new JSZip(); var dir = ('./zipped/'