docs: function searchBase(base) {
      var basename = path.resolve(base, modulename);
  
      // return no path
      var filename = searchArray(dirMap, basename);
      if (filename) return filename;
  
      // return .js path
      filename = searchArray(dirMap, basename + '.js');
      if (filename) return filename;
  
      // return .json path
      filename = searchArray(dirMap, basename + '.json');
      if (filename) return filename;
  
      // if input was an path, do search more
      if (isPath) return false;
  
      // resolve and return /package.json path
      if (packageMap[basename]) {
        return packageMap[basename];
      }
  
      return searchArray(dirMap, basename + '/index.js');
    }