OptionalallowOptionalbracemax number of {...} patterns to expand. Default 100_000.
At optimizationLevel 2 or higher, this also limits the
patterns made when ** is followed by ... Over this limit,
construction throws a RangeError.
Optionaldotallow matches that start with . even if the pattern does not
Optionalflipinvert the results of negated matches
Optionalmagicalconsider braces to be "magic" for the purpose of hasMagic
OptionalmatchIf set, then patterns without slashes will be matched
against the basename of the path if it contains slashes.
For example, a?b would match the path /xyz/123/acb, but
not /xyz/acb/123.
OptionalmaxMax number of non-adjacent ** patterns to recursively walk down.
The default of 200 is almost certainly high enough for most purposes, and can handle absurdly excessive patterns.
Optionalnobracedo not expand {x,y} style braces
Optionalnocaseignore case
Optionalnocaseignore case only in wildcard patterns
Optionalnocommentdo not treat patterns starting with # as a comment
Optionalnoextdo not expand extglobs like +(a|b)
Optionalnoglobstartreat ** the same as *
Optionalnonegatedo not treat patterns starting with ! as a negation
Optionalnonullreturn the pattern if nothing matches
OptionalnormalizeNormalize unicode in the pattern and in each portion of the
tested paths, with this form. true means 'NFC'.
OptionaloptimizationA number indicating the level of optimization that should be done
to the pattern prior to parsing and using it for matches.
At level 2 or higher, throws RangeError if splitting ** and ..
would make more than braceExpandMax patterns, or add more than
1,000,000 path portions.
OptionalpartialCompare a partial path to a pattern. As long as the parts of the path that are present are not contradicted by the pattern, it will be treated as a match. This is useful in applications where you're walking through a folder structure, and don't yet have the full path, but want to ensure that you do not walk down paths that can never be a match.
Optionalplatformoperating system platform
Optionalpreservedo not collapse multiple / into a single /
OptionalwindowsWhen a pattern starts with a UNC path or drive letter, and in
nocase:true mode, do not convert the root portions of the
pattern into a case-insensitive regular expression, and instead
leave them as strings.
This is the default when the platform is win32 and
nocase:true is set.
Optionalwindowstreat \\ as a path separator, not an escape character
inverse of MinimatchOptions.windowsPathsNoEscape