Skip to main content

dirname()

const dirname: (p) => string = upath.dirname

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

Parameters

ParameterTypeDescription

p

string

the path to evaluate.

Returns

string