verb
Version:
A project without documentation is like a project that doesn't exist. Verb solves this by making it dead simple to generate docs, using simple markdown templates, with zero configuration required.
19 lines (17 loc) • 487 B
JavaScript
/**
* Parse the AUTHORS file into an array of `author` objects.
*
* @param {String} filepath Alternate filepath.
* @return {Array} array of author objects
* @param {Object}
* => {name: '', email: '', url: ''}
*/
module.exports = function (verb) {
verb.options = verb.options || {};
verb.context = verb.context || {};
var utils = verb.utils;
try {
var filepath = verb.options.authors;
verb.context.authors = utils.authors(filepath);
} catch (e) {}
};