@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
20 lines • 659 B
TypeScript
/**
* Join all given a sequence of paths, then normalizes the resulting path.
*
* @example Usage
* ```ts
* import { join } from "@std/path/join";
* import { assertEquals } from "@std/assert/assert-equals";
*
* if (Deno.build.os === "windows") {
* assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
* } else {
* assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
* }
* ```
*
* @param paths Paths to be joined and normalized.
* @returns The joined and normalized path.
*/
export declare function join(...paths: string[]): string;
//# sourceMappingURL=join.d.ts.map