Function basename

  • 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.

    Parameters

    • p: string

      the path to evaluate.

    • Optional ext: string

      optionally, an extension to remove from the result.

    Returns string

  • 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.

    Parameters

    • p: string

      the path to evaluate.

    • Optional ext: string

      optionally, an extension to remove from the result.

    Returns string

Generated using TypeDoc