matcher-collection
v2.0.1
Published
Minimatch but for collections of minimatcher matchers.
Downloads
4,782,764
Readme
MatcherCollection
Minimatch but for collections of minimatcher matchers.
Install
yarn add matcher-collection
Examples
const MatcherCollection = require('matcher-collection')
const m = new MatcherCollection([
'tests/',
'**/*.js',
]);
m.match('tests/foo.js') // => true
m.match('foo.js') // => false
m.mayContain('tests') // => true
m.mayContain('foo') // => false