UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

8 lines 386 B
import { isRootPathSegments, } from '../is/is-root-path-segments.js'; /** * Converts some`IPathSegments` into a string path. */ export function convertPathSegmentsToStringPath(segments, { separator, ...options }) { return isRootPathSegments(segments, options) ? segments[0] + separator : segments.join(separator); } //# sourceMappingURL=convert-path-segments-to-string-path.js.map