Returns the directory name of a path.
directory is used instead of folder to preserve compatibility with node:path module.
Import:
import { dirname } from '@mnaoumov/typescript-lib/path';
Signature:
const dirname: (this: void, path: string) => string
Type: (this: void, path: string) => string