Skip to main content

basename

Callable

  • basename(path: string): string

  • Returns the last portion of a path.


    Parameters

    • path: string

      The path to extract the basename from.

    Returns string

    The basename of the path.