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