toNamespacedPath
import { toNamespacedPath } from "jsr:@ende/path/posix/to-namespaced-path";function
function toNamespacedPath(path: string): stringConverts a path to a namespaced path. This function returns the path as is on posix.
path: stringThe path.
Returns
The namespaced path.
Example: Usage
import { toNamespacedPath } from "@ende/path/posix/to-namespaced-path";
import { assertEquals } from "@ende/assert";
assertEquals(toNamespacedPath("/home/foo"), "/home/foo");