index.js
function ( path, base )
{ let start = path.substr ( 0, 2 )
  let paths
  if ( start != './' && start != '..' )
  { // absolute or funky node_modules require
    paths = module.paths
  }
  else
  { paths =  [ base ]
  }
  let filename = findPath ( path, paths )
  if ( !filename )
  { throw new Error ( `Cannot find path '${ path }'` )
  }
  return filename
}
function ( path, base )
{ let start = path.substr ( 0, 2 )
  let paths
  if ( start != './' && start != '..' )
  { // absolute or funky node_modules require
    paths = module.paths
  }
  else
  { paths =  [ base ]
  }
  let filename = findPath ( path, paths )
  if ( !filename )
  { throw new Error ( `Cannot find path '${ path }'` )
  }
  return filename
}
function ( path , base ) { let start = path . substr ( 0 , 2 ) let paths if ( start != './' && start != '..' ) { // absolute or funky node_modules require paths = module . paths } else { paths = [ base ] } let filename = findPath ( path , paths ) if ( ! filename ) { throw new Error ( ` ${ path } ` ) } return filename }
Used by require
Used by require