UNPKG

@oazmi/build-tools

Version:

general deno build tool scripts which I practically use in all of my typescript repos

21 lines 628 B
/** Determines the common path from a set of paths, using an optional separator, * which defaults to the OS default separator. * * @example Usage * ```ts * import { common } from "@std/path/windows/common"; * import { assertEquals } from "@std/assert/assert-equals"; * * const path = common([ * "C:\\foo\\bar", * "C:\\foo\\baz", * ]); * assertEquals(path, "C:\\foo\\"); * ``` * * @param paths The paths to compare. * @param sep The separator to use. Defaults to `\\`. * @returns The common path. */ export declare function common(paths: string[], sep?: string): string; //# sourceMappingURL=common.d.ts.map