deno.land / std@0.201.0 / path / to_namespaced_path.ts

to_namespaced_path.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
import { isWindows } from "./_os.ts";import { posixToNamespacedPath, windowsToNamespacedPath,} from "./_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);}
std

Version Info

Tagged at
a year ago