MCPcopy
hub / github.com/ekmas/neobrutalism-components / transformToSlug

Function transformToSlug

src/lib/utils.ts:12–14  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

10}
11
12export function transformToSlug(input: string): string {
13 return input.toLowerCase().replace(/\s+/g, "-")
14}
15
16export function transformToName(input: string): string {
17 return input

Callers 3

ComponentPreviewFunction · 0.90
sidebar-links.tsFile · 0.90
sitemapFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected