Skip to main content
globSync - node__fs.d.ts - Node documentation
function globSync

Usage in Deno

```typescript import { globSync } from "node:node__fs.d.ts"; ```
globSync(pattern: string | string[]): string[]
Retrieves the files matching the specified pattern.

Parameters

pattern: string | string[]

Return Type

string[]
globSync(
pattern: string | string[],
): Dirent[]

Parameters

pattern: string | string[]

Return Type

globSync(
pattern: string | string[],
): string[]

Parameters

pattern: string | string[]

Return Type

string[]
globSync(
pattern: string | string[],
options: GlobOptions,
): Dirent[] | string[]

Parameters

pattern: string | string[]
options: GlobOptions

Return Type

Dirent[] | string[]