Fglob
Bun

function

fs.glob

function glob(
pattern: string | string[],
callback: (err: null | ErrnoException, matches: string[]) => void
): void;

Retrieves the files matching the specified pattern.

function glob(
pattern: string | string[],
callback: (err: null | ErrnoException, matches: Dirent[]) => void
): void;

Retrieves the files matching the specified pattern.

function glob(
pattern: string | string[],
callback: (err: null | ErrnoException, matches: string[]) => void
): void;

Retrieves the files matching the specified pattern.

function glob(
pattern: string | string[],
options: GlobOptions,
callback: (err: null | ErrnoException, matches: string[] | Dirent[]) => void
): void;

Retrieves the files matching the specified pattern.