Converts a parsed Minimatch pattern back to a string.
Parsed Minimatch pattern to stringify.
String corresponding to matcher
.
Joins a prefix (POSIX path) with a parsed Minimatch pattern.
It can be used to restrict a Minimatch pattern to a subdirectory:
const jsFiles = new Minimatch("**\/*.js");
const jsFilesInBuildExample = join("build/example", jsFiles);
This acts as a generalization of Node's path.join
over Minimatch patterns.
If the Minimatch pattern is a comment or can be interpreted as an absolute POSIX path (ie. starts with /
),
an unprefixed copy of matcher
is returned.
Left side of the join, must be a POSIX path (relative or absolute)
Parsed Minimatch pattern.
New Minimatch pattern resulting from joining prefix
with matcher
.
Generated using TypeDoc
Helper functions to manipulate Minimatch patterns.