9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function normalize(path: string): string;

Defined in: file-system/index.d.ts:368

Normalizes a path, taking care of occurrances like ".." and "//".

Parameters

ParameterTypeDescription
pathstringThe path to be normalized.

Returns

string

Previous
join