path.PlatformPath.dirname - Node documentation
method path.PlatformPath.dirname

Usage

import { type path } from "node:path";

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

Parameters

path: string

the path to evaluate.

Return Type

string