Skip to content

Search the guides, deployment pages, and API reference.

glob

import { glob } from "@pitlane/content/loaders";
function glob(options): ContentLoader;

Reads every file a pattern matches as one entry.

pattern is an ordinary runtime value — computed, read from the environment, or assembled in a loop — because nothing about it is read statically.

Parameters

options

base?

string

generateId?

(options: GenerateIdOptions) => string

pattern

string | string[]

satteri?

CompileOptions

Returns

ContentLoader

See

Content guide