Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function concatPath
import { concatPath } from "https://deno.land/x/url_concat@1.0.0-beta.1/concats.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