UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

7 lines (6 loc) 323 B
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js'; /** * Returns the parent directory of `segments`: * - returns null if path has no parent directory (if path is `['.']` or `[root]`) */ export declare function getDirnameOfPathSegments(segments: IPathSegments): IPathSegments | null;