micromatch / nanomatch

Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but without support for extended globs (extglobs), posix brackets or braces, and with complete Bash 4.3 wildcard support: ("*", "**", and "?").
https://github.com/micromatch
MIT License
96 stars 20 forks source link

Any way to see the patterns that are matching when using an array of patterns? #19

Open EyePulp opened 5 years ago

EyePulp commented 5 years ago

Howdy - we're using this to test user-defined arrays of patterns, and it would be helpful to indicate which pattern caused the match if one exists. For performance, we'd still like to use an array of patterns rather than running a loop on each individual pattern. Any recommendations (or existing API calls) that display the pattern that triggers a match?

Thanks!