normalizeIfRelative
Normalizes a given path by ensuring it is relative, adding ”./” if necessary.
Import:
import { normalizeIfRelative } from 'obsidian-dev-utils/path';Signature:
function normalizeIfRelative(path: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
path | string | The path to normalize. |
Returns: string — The normalized path, starting with ”./” if it was relative.