Skip to main content
path.PlatformPath.matchesGlob - node__path.d.ts - Node documentation
method path.PlatformPath.matchesGlob

Usage in Deno

```typescript import { type path } from "node:node__path.d.ts"; ```
PlatformPath.matchesGlob(
path: string,
pattern: string,
): boolean
The `path.matchesGlob()` method determines if `path` matches the `pattern`.

Parameters

path: string
The path to glob-match against.
pattern: string
The glob to check the path against.

Return Type

boolean
Whether or not the `path` matched the `pattern`.

Throws

TypeError
if `path` or `pattern` are not strings.