• Resolves one or more paths against the path of a 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 removed.

    Parameters

    • uri: URI

      The input URI.

    • Rest...paths: string[]

      The paths to resolve against the path of URI.

    Returns URI

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