Skip to main content
Module

x/url_concat/mod.ts>concatPath

Concatenate URL parts
Latest
function concatPath
import { concatPath } from "https://deno.land/x/url_concat@1.0.0-beta.1/mod.ts";

Securely concatenate URL paths. The concatenation is free of duplicate slashes. Empty segments are ignored.

Behaves strictly according to the meaning of "concatenation". Do nothing about anything other than the concatenation, e.g., head and tail slashes.

Parameters

...paths: readonly string[]

Returns

string