Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/snel/core/utils/RouteParams.ts>NormalizePathName

A Cybernetical framework for svelte applications in deno
Latest
function NormalizePathName
import { NormalizePathName } from "https://deno.land/x/snel@v0.7.1/core/utils/RouteParams.ts";

Normalize a pathname for matching, replaces multiple slashes with a single slash and normalizes unicode characters to "NFC". When using this method, decode should be an identity function so you don't decode strings twice.

Parameters

path: string