• Joins one or more input paths to the path of URI. '/' is used as the directory separation character.

    The resolved path will be normalized. That means:

    • all '..' and '.' segments are resolved.
    • multiple, sequential occurences of '/' are replaced by a single instance of '/'.
    • trailing separators are preserved.

    Parameters

    • uri: URI

      The input URI.

    • Rest...paths: string[]

      The paths to be joined with the path of URI.

    Returns URI

    A URI with the joined path. All other properties of the URI (scheme, authority, query, fragments, ...) will be taken from the input URI.