A module for glob/fn-match based string matching. Patterns are parsed and converted to regexes and matched using the core Regex library.
The set syntax also supports ranges. eg.
0-6, etc. Only ASCII letters & numbers as I'm
unclear on how to properly support other locales.
Available with the
defaultOptions record which has the
enableAsterisk (default: True) Can be used to disable the handling of '*'
enableQuestionMark (default: True) Can be used to disable the handling of '?'
enableBrackets (default: True) Can be used to disable the handling of characters sets that use ''
Available as an independent function:
npm installto set up
yarn testto run the tests
Please add tests to help cover any changes you are making.
The name & API are subject to change. I would welcome any help & advice on making them better.