Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function(patterns, dest, options) {
// Options defaults
var opts = _.defaults({cwd: 'docs', ext: '.md'}, options);
// Globule defaults
var globOpts = {
flatten: true,
matchBase: true,
prefixBase: false,
srcBase: opts.cwd,
destBase: dest,
ext: opts.ext
};
return glob.findMapping(patterns, globOpts);
};