import { join } from "https://deno.land/std@0.224.0/url/mod.ts";
Joins a base URL or URL string, and a sequence of path segments together, then normalizes the resulting URL.
Examples
Basic usage
Basic usage
import { join } from "https://deno.land/std@0.224.0/url/join.ts";
join("https://deno.land/", "std", "path", "mod.ts").href;
// "https://deno.land/std/path/mod.ts"
join("https://deno.land", "//std", "path/", "/mod.ts").href;
// "https://deno.land/path/mod.ts"
Parameters
url: string | URL
Base URL to be joined with the paths and normalized.