zip-directory archive a directory to zip const zipDir = require('zip-directory'); zipDir('/path/to/dir', '/path/to/file.zip', () => { });