• Platform agnostic method to get the folder name from a path string (dirname); returns the folder of the path treating both / as well as \ as directory separators.

    Parameters

    • pathLike: string

      path like string

    Returns string

    Folder path of a path like string