UNPKG

mjdapi

Version:
14 lines (13 loc) 459 B
/** Determines the common path from a set of paths, using an optional separator, * which defaults to the OS default separator. * * ```ts * import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts"; * 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;