Skip to content

Function: nodePath()

Documentation / @wtf/platform-node / path / nodePath

function nodePath(__namedParameters?): Path;

Defined in: packages/platform-node/src/path.ts:17

The paths of Node, node:path as the platform has it, of Windows or of POSIX (or the one flavour names), resolving against the process’s working folder; fromFileUrl and toFileUrl of node:url, a URL that is no file URL a BadArgument.

Parameters

ParameterType
__namedParameters{ flavour?: "win32" | "posix"; }
__namedParameters.flavour?"win32" | "posix"

Returns

Path