keep-a-changelog
Version:
Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.
24 lines (23 loc) • 698 B
JavaScript
;
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
Object.defineProperty(exports, "__esModule", { value: true });
exports.toNamespacedPath = toNamespacedPath;
/**
* 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.
*/
function toNamespacedPath(path) {
// Non-op on posix systems
return path;
}