abi.js
Version:
[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]
21 lines (20 loc) • 583 B
JavaScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
/**
* Converts a path to a namespaced path. This function returns the path as is on posix.
*
* @example Usage
* ```ts
* import { toNamespacedPath } from "@std/path/posix/to-namespaced-path";
* import { assertEquals } from "@std/assert";
*
* assertEquals(toNamespacedPath("/home/foo"), "/home/foo");
* ```
*
* @param path The path.
* @returns The namespaced path.
*/
export function toNamespacedPath(path) {
// Non-op on posix systems
return path;
}