index.js
function run(cmd) {
  try {
    if (isWindows)
      cmd = 'cmd /C ' + cmd;
    var code = shell.exec(cmd);
    return code;
  } catch (err) {
    if (err) {
      console.error(err)
    }
    return 1;
  }
}
function run(cmd) {
  try {
    if (isWindows)
      cmd = 'cmd /C ' + cmd;
    var code = shell.exec(cmd);
    return code;
  } catch (err) {
    if (err) {
      console.error(err)
    }
    return 1;
  }
}
function run ( cmd ) { try { if ( isWindows ) cmd = 'cmd /C ' + cmd ; var code = shell . exec ( cmd ) ; return code ; } catch ( err ) { if ( err ) { console . error ( err ) } return 1 ; } }
Runs `cmd` synchronously returning the exit code.
Runs cmd synchronously returning the exit code .