Extends minimatch with support for multiple patterns. Similar to multimatch, but returns expected results and passes all tests (see readme). Also similar to globule.match but more compact (and passes all globule.match tests).
Install with npm:
npm i matched --save-dev
var matched = ;// => ['baz']
In the command line, run:
The following comparison summarizes (part of) the motivation for creating this lib.
Given that we have an array of files:
var files ='vendor/js/foo.js''vendor/js/bar.js''vendor/js/baz.js';
Using this glob pattern:
['!**/*z.js', '**/foo.js'], what should the results be? Here is the each lib would handle them.
||incorrect, since we didn't ask for
See the tests for more examples.
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on June 14, 2014.