UNPKG

@flex-development/pathe

Version:

Universal drop-in replacement for node:path

25 lines (24 loc) 582 B
/** * @file join * @module pathe/lib/join */ /** * Join all path segments in `paths` using {@linkcode sep} as the delimiter and * normalize the result. * * Zero-length path segments are ignored. * If the joined path string is a zero-length string, {@linkcode dot} is * returned, representing the current working directory. * * @category * core * * @this {void} * * @param {string[]} paths * The path segment sequence * @return {string} * Path segment sequence as one path */ declare function join(this: void, ...paths: string[]): string; export default join;