Skip to main content
Version: Next (2.x)

matchesGlob

const matchesGlob: (path, pattern) => boolean

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

Parameters

ParameterTypeDescription

path

string

The path to glob-match against.

pattern

string | string[]

The glob to check the path against.

Returns

boolean