Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Router.cleanPathname
import { Router } from "https://deno.land/x/allo_routing@v2.2.3/routers/Router.ts";

Clean pathname. Remove start and end slashes.

Parameters

pathname: string

Returns

string