matcher-collection
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i matcher-collection

Weekly Downloads

1,192,213

Version

2.0.1

License

ISC

Unpacked Size

2.93 kB

Total Files

4

Last publish

Collaborators

  • stefanpenner