Return the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path.
if path is not a string or if ext is given and is not a string.
path
ext
the path to evaluate.
Optional
optionally, an extension to remove from the result.
Generated using TypeDoc
Return the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path.
Throws
if
path
is not a string or ifext
is given and is not a string.