Skip to content

PromptScript API


Function: normalizeOutputPath()

normalizeOutputPath(path): string

Defined in: core/src/output-plan.ts:136

Normalize a project-relative output path.

Leading ./ and redundant separators are harmless and removed. Absolute paths and parent traversal are rejected instead of being silently repaired.

Parameters

path

string

Returns

string