Skip to content

normalizeOutputPath()

PromptScript API


normalizeOutputPath(path): string

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

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