lib/util.js
function(file, args) {
    return new Promise(function(resolve, reject) {
      var child = spawn(file, args, { stdio: 'inherit' });
      child.on('error', reject);
      child.on('close', resolve);
    });
  }
function(file, args) {
    return new Promise(function(resolve, reject) {
      var child = spawn(file, args, { stdio: 'inherit' });
      child.on('error', reject);
      child.on('close', resolve);
    });
  }
function ( file , args ) { return new Promise ( function ( resolve , reject ) { var child = spawn ( file , args , { stdio : 'inherit' } ) ; child . on ( 'error' , reject ) ; child . on ( 'close' , resolve ) ; } ) ; }
Spawn a process and return a promise.

@param {string}   file Filename of the program to run.
@param {string[]} args List of string arguments.
@returns {Promise}
Spawn a process and return a promise .