Fdirname
Bun

function

path.default.dirname

function dirname(
path: string
): string;

Return the directory name of a path. Similar to the Unix dirname command.

@param path

the path to evaluate.