function join
join(): URLJoin a base URL and a series of paths, then normalizes the resulting URL.
Examples
Example 1
Example 1
import { join } from "@std/url/join"; 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"
Parameters
Return Type
a complete URL string containing the base URL joined with the paths