Skip to main content
Module

x/http_router/deps.ts>concatPath

HTTP request router for standard Request and Response
Latest
function concatPath
import { concatPath } from "https://deno.land/x/http_router@3.0.0-beta.7/deps.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