PromptScript API
formatPath(ref): string
Defined in: core/src/utils/path.ts:158
Format a PathReference back to its string representation.
Parameters
ref
PathReference to format
PathReference | ParsedPath
Returns
string
Formatted path string
Example
formatPath({ namespace: 'core', segments: ['guards', 'compliance'], version: '1.0.0', isRelative: false })
// '@core/guards/compliance@1.0.0'
formatPath({ segments: ['local', 'file'], isRelative: true })
// './local/file'