UNPKG

verb

Version:

Verb makes it easy to build project documentation using simple markdown templates, with zero configuration required.

41 lines (35 loc) 692 B
/** * Verb <https://github.com/assemble/verb> * Generate markdown documentation for GitHub projects. * * Copyright (c) 2014 Jon Schlinkert, Brian Woodward, contributors. * Licensed under the MIT license. */ 'use strict'; var _ = require('lodash'); /** * Default exclusions */ var exclusions = [ 'bin', 'cache', 'contributing', 'filters', 'functions', 'lang', 'matter', 'namespace', 'tags', 'verbose' ]; /** * Omit properties from the context * * @return {Object} * @api private */ module.exports = function(context, options) { var opts = _.extend({omit: []}, options); var omit = _.defaults(opts.omit, exclusions); return _.omit(context, omit); };