---
url: 'https://adk.nht.io/api/batteries/sandbox/node/functions/primeGlobMatcher.md'
---

# Function: primeGlobMatcher()

```ts
function primeGlobMatcher(rules: Iterable<string>): Promise<void>;
```

Defined in: [src/batteries/sandbox/node/fs\_node.ts:75](https://github.com/NHTIO/ADK/blob/v1.20260824.1/src/src/batteries/sandbox/node/fs_node.ts#L75)

Compile every glob-bearing rule through upstream's own `globToRegex`.

## Parameters

| Parameter | Type                   | Description                              |
| --------- | ---------------------- | ---------------------------------------- |
| `rules`   | `Iterable`<`string`> | Raw rule strings from the derived lists. |

## Returns

`Promise`<`void`>

## Remarks

MUST be awaited before the evaluator is consulted, because the deep import is async while the
evaluator is not. [srtEnforcer](srtEnforcer.md) does this for every rule in the derived lists immediately
after capturing them — NOT [createFsNode](createFsNode.md), which is synchronous and therefore cannot. An
earlier comment here named `createFsNode`, which was simply false: nothing primed, so the
synchronous fallback was the only path production ever took.
