How to use the globule.findMapping function in globule

To help you get started, we’ve selected a few globule examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github verbose / verb / lib / utils / expandMapping.js View on Github external
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);


An easy-to-use wildcard globbing library.

Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis