lib/analyzers/bower/index.js
function getCredits(projectPath, credits) {
	credits = credits || [];

	const depPath = path.join(projectPath, 'bower_components');

	globby.sync([`${depPath}/*/bower.json`])
		.forEach(bowerJsonPath => {
			getBowerCredits(bowerJsonPath, credits);
		});

	return credits;
}
function getCredits(projectPath, credits) {
	credits = credits || [];

	const depPath = path.join(projectPath, 'bower_components');

	globby.sync([`${depPath}/*/bower.json`])
		.forEach(bowerJsonPath => {
			getBowerCredits(bowerJsonPath, credits);
		});

	return credits;
}
function getCredits ( projectPath , credits ) { credits = credits || [ ] ; const depPath = path . join ( projectPath , 'bower_components' ) ; globby . sync ( [ ` ${ depPath } ` ] ) . forEach ( bowerJsonPath => { getBowerCredits ( bowerJsonPath , credits ) ; } ) ; return credits ; }
Read project root and evaluate dependency credits for bower modules

@param  {String} projectPath      absolute path to project root
@param  {Array}  credits          list of credits to append to
@return {Array}                   list of credits
Read project root and evaluate dependency credits for bower modules