lib/find-main-script.js
// Node.js should provide an API for this
Node.js should provide an API for this
Node . js should provide an API for this
function mainScript(defaultName) {
  if (typeof repl !== 'undefined' || '_eval' in process) {
    return defaultName
  }
  return process.argv[1] || defaultName
}
function mainScript ( defaultName ) { if ( typeof repl !== 'undefined' || '_eval' in process ) { return defaultName } return process . argv [ 1 ] || defaultName }
Node.js should provide an API for this
Node . js should provide an API for this