docs: function resolve( udir, name, fmt ) {
  	var fpath,
  		base,
  		ext;
  
  	ext = extname( name );
  
  	// Basename has an extension...
  	if ( ext ) {
  		base = name;
  		fpath = check( udir, base, false );
  		if ( fpath ) {
  			debug( 'Found a user configuration file: %s. Attempting to load...', fpath );
  			return load( fpath );
  		} else {
  			debug( 'Unable to resolve a user configuration file with basename `%s` in directory `%s`.', base, udir );
  		}
  		if ( name[ 0 ] !== '.' ) {
  			base = '.' + name;
  			fpath = check( udir, base, false );
  			if ( fpath ) {
  				debug( 'Found a user configuration file: %s. Attempting to load...', fpath );
  				return load( fpath );
  			} else {
  				debug( 'Unable to resolve a user configuration file with basename `%s` in directory `%s`.', base, udir );
  			}
  		}
  		// File basename should already begin with a '.'.
  		fpath = upsearch( base );
  		if ( fpath ) {
  			debug( 'Found a user configuration file: %s. Attempting to load...', fpath );
  			return load( fpath );
  		} else {
  			debug( 'Unable to resolve a user configuration file with basename `%s`.', base );
  		}
  		debug( 'Unable to resolve a user configuration file.' );
  		return null;
  	}
  	// No extension...
  	fmt = fmt || 'ini';
  
  	// Search for a dot or rc file...
  	if ( name[ 0 ] === '.' ) {
  		base = name;
  	} else {
  		base = '.' + name;
  	}
  	fpath = check( udir, base, false );
  	if ( fpath ) {
  		debug( 'Found a user configuration file: %s. Attempting to load and parse as `%s`...', fpath, fmt );
  		return load( fpath, fmt );
  	} else {
  		debug( 'Unable to resolve a user configuration file with basename `%s` in directory `%s`.', base, udir );
  	}
  	base += 'rc';
  	fpath = check( udir, base, false );
  	if ( fpath ) {
  		debug( 'Found a user configuration file: %s. Attempting to load and parse as `%s`...', fpath, fmt );
  		return load( fpath, fmt );
  	} else {
  		debug( 'Unable to resolve a user configuration file with basename `%s` in directory `%s`.', base, udir );
  	}
  
  	// Check for a file without an extension...
  	base = name;
  	fpath = check( udir, base, false );
  	if ( fpath ) {
  		debug( 'Found a user configuration file: %s. Attempting to load...', fpath );
  		return load( fpath, fmt );
  	} else {
  		debug( 'Unable to resolve a user configuration file with basename `%s` in directory `%s`.', base, udir );
  	}
  
  	// Check for a file having a supported extension...
  	base = name;
  	fpath = check( udir, base, true );
  	if ( fpath ) {
  		debug( 'Found a user configuration file: %s. Attempting to load...', fpath );
  		return load( fpath );
  	} else {
  		debug( 'Unable to resolve a user configuration file with basename `%s` and a supported extension name in directory `%s`.', base, udir );
  	}
  	if ( name[ 0 ] !== '.' ) {
  		base = '.' + name;
  		fpath = check( udir, base, true );
  		if ( fpath ) {
  			debug( 'Found a user configuration file: %s. Attempting to load...', fpath );
  			return load( fpath );
  		} else {
  			debug( 'Unable to resolve a user configuration file with basename `%s` and a supported extension name in directory `%s`.', base, udir );
  		}
  	}
  
  	// Walk up from the cwd in search of a dot or rc file...
  	return pkgrc( name, fmt );
  }