Skip to main content
globSync - fs - Node documentation
function globSync

Usage in Deno

import { globSync } from "node:fs";
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[]
Back to top