matcher-collection
Minimatch but for collections of minimatcher matchers.
Last updated 7 years ago by stefanpenner .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install matcher-collection 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (7 years ago)

11 Versions

  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           8 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.5                                ...           9 years ago
  • 1.0.4                                ...           10 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 29
Today 0
This Week 4
This Month 29
Last Day 0
Last Week 15
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE