toNamespacedPath

import { toNamespacedPath } from "jsr:@ende/path/posix/to-namespaced-path";

function

function toNamespacedPath(path: string): string

Converts a path to a namespaced path. This function returns the path as is on posix.

path: string

The 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");

Source