glob
Side-effect-free matching with compiled glob patterns.
This module does not walk the filesystem and does not overlap with the
traversal APIs in fs.
Types
| Type | Description |
|---|---|
Glob |
A compiled glob pattern. |
Functions
matches pattern value -> Bool
Tests whether value matches a glob pattern.
Passing pattern text compiles it for this call only.
Parameters
| Name | Type | Description |
|---|---|---|
pattern |
(Glob | Str) |
Glob object or pattern text. |
value |
Str |
Candidate string to test. |