UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

7 lines (6 loc) 346 B
import type { IPathSegment } from '../../../../../types/segments/segment/path-segment.type.js'; /** * Returns the basename of a segment, without 'ext' if provided * INFO: 'basename' must be a valid entry name (must not be root or relative) */ export declare function getBasenameOfEntryPathSegment(segment: IPathSegment, ext?: string): string;