Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method Router.cleanPathname
import { Router } from "https://deno.land/x/allo_routing@v2.0.1/routers/Router.ts";

Clean pathname. Remove start and end slashes.

Parameters

pathname: string

Returns

string