lib/package.js
function getAuthor(packageJson) {
	if (Array.isArray(packageJson.authors)) {
		packageJson.authors = packageJson.authors.map(author => {
			if (typeof author === 'string') {
				return getPersonObject(author);
			}

			return getAllStar(author);
		});

		return packageJson.authors ? packageJson.authors : false;
	}

	if (typeof packageJson.author === 'string') {
		return getPersonObject(packageJson.author);
	}

	return packageJson.author ?
		getAllStar(packageJson.author) :
		false;
}
function getAuthor(packageJson) {
	if (Array.isArray(packageJson.authors)) {
		packageJson.authors = packageJson.authors.map(author => {
			if (typeof author === 'string') {
				return getPersonObject(author);
			}

			return getAllStar(author);
		});

		return packageJson.authors ? packageJson.authors : false;
	}

	if (typeof packageJson.author === 'string') {
		return getPersonObject(packageJson.author);
	}

	return packageJson.author ?
		getAllStar(packageJson.author) :
		false;
}
function getAuthor ( packageJson ) { if ( Array . isArray ( packageJson . authors ) ) { packageJson . authors = packageJson . authors . map ( author => { if ( typeof author === 'string' ) { return getPersonObject ( author ) ; } return getAllStar ( author ) ; } ) ; return packageJson . authors ? packageJson . authors : false ; } if ( typeof packageJson . author === 'string' ) { return getPersonObject ( packageJson . author ) ; } return packageJson . author ? getAllStar ( packageJson . author ) : false ; }
Extract author from package.json content

@param  {Object} packageJson content of package.json

@return {Object|false}       author if exists or false

@tested
Extract author from package . json content