index.js
function getInternetExplorerExe () {
  var suffix = path.join('Internet Explorer', PROCESS_NAME)
  var locations = _.map(_.compact([
    process.env['PROGRAMW6432'],
    process.env['PROGRAMFILES(X86)'],
    process.env['PROGRAMFILES']
  ]), function (prefix) {
    return path.join(prefix, suffix)
  })

  return _.find(locations, function (location) {
    return fs.existsSync(location)
  })
}
function getInternetExplorerExe () {
  var suffix = path.join('Internet Explorer', PROCESS_NAME)
  var locations = _.map(_.compact([
    process.env['PROGRAMW6432'],
    process.env['PROGRAMFILES(X86)'],
    process.env['PROGRAMFILES']
  ]), function (prefix) {
    return path.join(prefix, suffix)
  })

  return _.find(locations, function (location) {
    return fs.existsSync(location)
  })
}
function getInternetExplorerExe ( ) { var suffix = path . join ( 'Internet Explorer' , PROCESS_NAME ) var locations = _ . map ( _ . compact ( [ process . env [ 'PROGRAMW6432' ] , process . env [ 'PROGRAMFILES(X86)' ] , process . env [ 'PROGRAMFILES' ] ] ) , function ( prefix ) { return path . join ( prefix , suffix ) } ) return _ . find ( locations , function ( location ) { return fs . existsSync ( location ) } ) }
Find the ie executable
Find the ie executable