ScanOptions
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
|
|
Allow glob patterns without slashes to match a file path based on its basename. Same behavior as minimatch option Default Example | ||
|
|
Enabled by default, this option enforces bash-like behavior with stars immediately following a bracket expression. Bash bracket expressions are similar to regex character classes, but unlike regex, a star following a bracket expression does not repeat the bracketed characters. Instead, the star is treated the same as an other star. Default Example | ||
|
|
Return regex matches in supporting methods. Default | ||
|
|
Allows glob to match any part of the given string(s). Default | ||
|
|
Current working directory. Used by Default | ||
|
|
Debug regular expressions when an error is thrown. Default | ||
|
|
Match dotfiles. Otherwise dotfiles are ignored unless a Default | ||
|
( |
Custom function for expanding ranges in brace patterns, such as Default | ||
|
|
Similar to the Default | ||
|
|
To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to false. Default | ||
|
|
Regex flags to use in the generated regex. If defined, the Default | ||
|
( |
Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. Default | ||
|
|
One or more glob patterns for excluding strings that should not be matched from the result. Default | ||
|
|
Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. Default | ||
|
|
When Default | ||
|
|
Support regex positive and negative lookbehinds. Note that you must be using Node 8.1.10 or higher to enable regex lookbehinds. Default | ||
|
|
Alias for Default | ||
|
|
Limit the max length of the input string. An error is thrown if the input string is longer than this value. Default | ||
|
|
Disable brace matching, so that Default | ||
|
|
Disable matching with regex brackets. Default | ||
|
|
Perform case-insensitive matching. Equivalent to the regex Default | ||
|
|
Alias for Default | ||
|
|
Disable support for matching with extglobs (like Default | ||
|
|
Disable matching with globstars ( Default | ||
|
|
Disallow negation ( Default | ||
|
|
Disable support for regex quantifiers (like Default | ||
|
( |
Function to be called on ignored items. Default | ||
|
( |
Function to be called on matched items. Default | ||
|
( |
Function to be called on all items, regardless of whether or not they are matched or ignored. Default | ||
|
|
When Default |
‐ | |
|
|
Support POSIX character classes ("posix brackets"). Default | ||
|
|
String to prepend to the generated regex used for matching. Default | ||
|
|
Use regular expression rules for Default | ||
|
|
Throw an error if brackets, braces, or parens are imbalanced. Default | ||
|
|
When true, picomatch won't match trailing slashes with single stars. Default | ||
|
|
When Default |
‐ | |
|
|
Remove backslashes from returned matches. Default Example In this example we want to match a literal | ||
|
|
Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself Default |