MmatchesGlob
Bun

method

path.default.PlatformPath.matchesGlob

path: string,
pattern: string
): boolean;

The path.matchesGlob() method determines if path matches the pattern.

@param path

The path to glob-match against.

@param pattern

The glob to check the path against.

@returns

Whether or not the path matched the pattern.