Skip to content

Function: normalize()

normalize(inputPath): NormalizeResult

Normalize a filesystem-relative path into a rooted POSIX namespace path (/a/b). Resolves . and ... Returns { escape: true } when .. would leave the root.

Backslashes are converted via toPosix. Null bytes are rejected by callers that wrap this in a FileSystemError.

string

NormalizeResult