Skip to main content

normalizeSafe()

const normalizeSafe: (p) => string = upath.normalizeSafe

Exactly like path.normalize(path), but it keeps the first meaningful ./.

Note that the unix / is returned everywhere, so windows \ is always converted to unix /.

Parameters

ParameterTypeDescription

p

string

string path to normalize.

Returns

string