---
title: "glob"
description: "Reads every file a pattern matches as one entry."
url: "https://pitlane.tools/package/content/loaders/function/glob"
---

# glob

```ts
import { glob } from "@pitlane/content/loaders";
```

```ts
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`](https://pitlane.tools/package/content/interface/GenerateIdOptions.md)) => `string`

#### pattern

`string` | `string`\[\]

#### satteri?

`CompileOptions`

## Returns

[`ContentLoader`](https://pitlane.tools/package/content/interface/ContentLoader.md)

## See

[Content guide](https://pitlane.tools/guides/content.md)
