FglobSync
Bun

function

fs.globSync

function globSync(
pattern: string | readonly string[]
): string[];
import { globSync } from 'node:fs';

console.log(globSync('*.js'));
@returns

paths of files that match the pattern.

function globSync(
pattern: string | readonly string[],
): Dirent<string>[];
import { globSync } from 'node:fs';

console.log(globSync('*.js'));
@returns

paths of files that match the pattern.

function globSync(
pattern: string | readonly string[],
): string[];
import { globSync } from 'node:fs';

console.log(globSync('*.js'));
@returns

paths of files that match the pattern.

function globSync(
pattern: string | readonly string[],
options: GlobOptions
): string[] | Dirent<string>[];
import { globSync } from 'node:fs';

console.log(globSync('*.js'));
@returns

paths of files that match the pattern.