Skip to main content
default.PlatformPath.toNamespacedPath - node__path.d.ts - Node documentation
method default.PlatformPath.toNamespacedPath

Usage in Deno

```typescript import type mod from "node:node__path.d.ts"; ```
PlatformPath.toNamespacedPath(path: string): string
On Windows systems only, returns an equivalent namespace-prefixed path for the given path. If path is not a string, path will be returned without modifications. This method is meaningful only on Windows system. On POSIX systems, the method is non-operational and always returns path without modifications.

Parameters

path: string

Return Type

string