src/index.js
function getConfigFromFile(directories, filename) {
	const filepath = tryFile(directories, filename);
	if (!filepath) {
		return {};
	}

	return require(filepath);
}
function getConfigFromFile(directories, filename) {
	const filepath = tryFile(directories, filename);
	if (!filepath) {
		return {};
	}

	return require(filepath);
}
function getConfigFromFile ( directories , filename ) { const filepath = tryFile ( directories , filename ) ; if ( ! filepath ) { return { } ; } return require ( filepath ) ; }
Find and load config file.

@param {string[]} directories
@param {string} filename
@return {Object}
Find and load config file .