toCanonical
Normalizes a file path for comparison: forward slashes everywhere, lower-cased on a case-insensitive file system.
Import:
import { toCanonical } from '@mnaoumov/typescript-dev-toolkit/check-project-types';Signature:
function toCanonical(fileName: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
fileName |
string | The path to normalize. |
Returns: string — The canonical path.