Skip to main content
variable humanizeUrl
import { humanizeUrl } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Converts a string to humanize string url

The \w metacharacter is used to find a word character. Replace all non character with -. Note: A word character is a character from a-z, A-Z, 0-9, including the _ (underscore) character.

type

(
str: string,
preserveUndersore?,
preserveCase?,
) => unknown