deno.land / std@0.224.0 / path / to_namespaced_path.ts
1234567891011121314151617// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
import { isWindows } from "./_os.ts";import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.ts";import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.ts";
/** * Resolves path to a namespace path * @param path to resolve to namespace */export function toNamespacedPath(path: string): string { return isWindows ? windowsToNamespacedPath(path) : posixToNamespacedPath(path);}
Version Info