@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
14 lines • 458 B
TypeScript
/** Determines the common path from a set of paths, using an optional separator,
* which defaults to the OS default separator.
*
* ```ts
* import { common } from "@std/path";
* const p = common([
* "./deno/std/path/mod.ts",
* "./deno/std/fs/mod.ts",
* ]);
* console.log(p); // "./deno/std/"
* ```
*/
export declare function common(paths: string[], sep?: string): string;
//# sourceMappingURL=common.d.ts.map