light-process
API referenceFunctions

loadDirectory

function loadDirectory(dirPath, options?): Record<string, string>;

Defined in: src/CodeLoader.ts:34

Recursively load files into a flat { relativePath: content } record

Parameters

dirPath

string

options?

LoadOptions = {}

Returns

Record<string, string>

On this page