Skip to main content

glob

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

Retrieves the files matching the specified pattern.

Parameters Jump to heading

Jump to headingpattern: string | string[]
Jump to headingcallback: (
err: ErrnoException | null,
matches: string[],
) => void

Return Type Jump to heading

void
Jump to headingglob(
pattern: string | string[],
callback: (
err: ErrnoException | null,
matches: Dirent[],
) => void
,
): void

Parameters Jump to heading

Jump to headingpattern: string | string[]
Jump to headingcallback: (
err: ErrnoException | null,
matches: Dirent[],
) => void

Return Type Jump to heading

void
Jump to headingglob(
pattern: string | string[],
callback: (
err: ErrnoException | null,
matches: string[],
) => void
,
): void

Parameters Jump to heading

Jump to headingpattern: string | string[]
Jump to headingcallback: (
err: ErrnoException | null,
matches: string[],
) => void

Return Type Jump to heading

void
Jump to headingglob(
pattern: string | string[],
options: GlobOptions,
callback: (
err: ErrnoException | null,
matches: Dirent[] | string[],
) => void
,
): void

Parameters Jump to heading

Jump to headingpattern: string | string[]
Jump to headingcallback: (
err: ErrnoException | null,
matches: Dirent[] | string[],
) => void

Return Type Jump to heading

void
Back to top