import { join } from "https://dotland.deno.dev/std@0.223.0/url/join.ts";
Join a base URL
and a series of paths
, then normalizes the resulting URL.
Examples
Example 1
Example 1
import { join } from "https://deno.land/std@0.223.0/url/join.ts";
console.log(join("https://deno.land/", "std", "path", "mod.ts").href);
// Outputs: "https://deno.land/std/path/mod.ts"
console.log(join("https://deno.land", "//std", "path/", "/mod.ts").href);
// Outputs: "https://deno.land/path/mod.ts"