abi.js
Version:
[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]
17 lines (16 loc) • 478 B
TypeScript
/**
* Resolves path to a namespace path
*
* @example Usage
* ```ts
* import { toNamespacedPath } from "@std/path/windows/to-namespaced-path";
* import { assertEquals } from "@std/assert";
*
* const namespaced = toNamespacedPath("C:\\foo\\bar");
* assertEquals(namespaced, "\\\\?\\C:\\foo\\bar");
* ```
*
* @param path The path to resolve to namespaced path
* @returns The resolved namespaced path
*/
export declare function toNamespacedPath(path: string): string;