Skip to content

sunflowerdeath/multiple-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multiple-glob

Match files using node-glob but with array of patterns.

Install

npm install multiple-glob

Usage

var multiglob = require('multiple-glob')

multiglob(['**/*.js', '!node/**', '**/*.css'], function(err, files) {
  console.log('Yay!')
})

##API

multiglob(patterns, options, callback)

Match files with array of patterns and combines results.

Patterns that begin with ! will exclude files. Patterns are processed in order, so inclusion and exclusion order is significant.

patterns

Type: array

List of patterns.

options

Type: object

Options for glob.

callback

Type: function

multiglob.sync(pattern, options)

Synchronous version.

License

Public domain, see the LICENCE.md file.

About

Match files with array of patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published