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.

14 lines (11 loc) 284 B
'use strict'; /** * Modifier to add a github URl if a github username * exists on the context. */ module.exports = function github_(verb) { var username = verb.get('data.github.username'); if (username) { verb.set('data.github.url', 'https://github/' + username); } };