Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/utils / normalizePath

Function: normalizePath() ​

normalizePath(filePath): string

Defined in: path.ts:8

Normalizes a file path to use forward slashes (/) for cross-platform compatibility. Client-side version (browser-safe).

Parameters ​

ParameterTypeDescription
filePathstringThe file path to normalize

Returns ​

string

The normalized path with forward slashes

Released under the MIT License.