function(sourceFile, destDir) {
        return new Promise(function(resolve, reject) {
            var zip = new AdmZip(sourceFile);
            try {
                zip.extractAllTo(destDir);
                resolve(destDir);
            } catch(err) {
                reject(err);
            }
        });
    }
function(sourceFile, destDir) {
        return new Promise(function(resolve, reject) {
            var zip = new AdmZip(sourceFile);
            try {
                zip.extractAllTo(destDir);
                resolve(destDir);
            } catch(err) {
                reject(err);
            }
        });
    }
function ( sourceFile , destDir ) { return new Promise ( function ( resolve , reject ) { var zip = new AdmZip ( sourceFile ) ; try { zip . extractAllTo ( destDir ) ; resolve ( destDir ) ; } catch ( err ) { reject ( err ) ; } } ) ; }
Extracts a zip to a directory.
This will fail if the destination already exists.

@param sourceFile {string}
@param destDir {string}
@returns {Promise.<string>} path to the destination
Extracts a zip to a directory . This will fail if the destination already exists .