UNPKG

verb

Version:

Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.

16 lines (12 loc) 358 B
'use strict'; var username = require('git-user-name'); /** * Called in the `username` transform, if a `username` * cannot be determined from easier means, this attempts * to get the `user.name` from global `.git config` */ module.exports = function(verb) { if (!verb.get('data.git.username')) { verb.set('data.git.username', username()); } };