keep-a-changelog
Version:
Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.
20 lines • 628 B
TypeScript
/**
* Return the relative path from `from` to `to` based on current working directory.
*
* If `from` and `to` are the same, return an empty string.
*
* @example Usage
* ```ts
* import { relative } from "@std/path/posix/relative";
* import { assertEquals } from "@std/assert";
*
* const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb");
* assertEquals(path, "../../impl/bbb");
* ```
*
* @param from The path to start from.
* @param to The path to reach.
* @returns The relative path.
*/
export declare function relative(from: string, to: string): string;
//# sourceMappingURL=relative.d.ts.map