docs: function indexResolve(indexFilePath, options) {
  	var next, result = null;
  
  	var search = [
  
  		// Is a file path relative to current working directory :
  		function() {
  			result = resolve(fs.realpathSync(indexFilePath), process.cwd(), options);
  		}
  
  		// Is a file path relative to main module :
  		, function() {
  			result = resolve(fs.realpathSync(indexFilePath), dirname(require.main.filename), options);
  		}
  
  		// Is a package in node_module relative to current working directory :
  		, function() {
  			result = resolve(indexFilePath, process.cwd(), options);
  		}
  
  		// Is a package in node_module relative to main module :
  		, function() {
  			result = resolve(indexFilePath, dirname(require.main.filename), options);
  		}
  	]
  
  	while(next = search.shift()) {
  		try {
  			next();
  			return result;
  		} catch(e) {}
  	}
  }