2.0.1 • Published 5 years ago

matcher-collection v2.0.1

Weekly downloads
518,966
License
ISC
Repository
github
Last release
5 years ago

MatcherCollection Build Status Build status

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