• Returns the base name of a path.

    Parameters

    • path: string

      Path to get the base name of.

    • Optional ext: string

      Optional extension to remove from the result.

    Returns string

    Base name.