lib/index.js
function executeJS (script) {
  if (!script) return;

  try {
    var ret = vm.runInThisContext(script, '[eval]');
    if ('undefined' != typeof ret) {
      console.log(ret);
    }
  } catch (err) {
    if (!(err instanceof Error)) {
      err = new Error(err);
    }
    console.log(err.stack.split('\n')[0]);
    process.exit(1);
  }
}
function executeJS (script) {
  if (!script) return;

  try {
    var ret = vm.runInThisContext(script, '[eval]');
    if ('undefined' != typeof ret) {
      console.log(ret);
    }
  } catch (err) {
    if (!(err instanceof Error)) {
      err = new Error(err);
    }
    console.log(err.stack.split('\n')[0]);
    process.exit(1);
  }
}
function executeJS ( script ) { if ( ! script ) return ; try { var ret = vm . runInThisContext ( script , '[eval]' ) ; if ( 'undefined' != typeof ret ) { console . log ( ret ) ; } } catch ( err ) { if ( ! ( err instanceof Error ) ) { err = new Error ( err ) ; } console . log ( err . stack . split ( '\n' ) [ 0 ] ) ; process . exit ( 1 ) ; } }
Executes javascript passed by --eval

@param {String} script to evaluate
Executes javascript passed by -- eval