MCPcopy Index your code
hub / github.com/9d8dev/directory / generateSlug

Function generateSlug

lib/utils.ts:8–13  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

6}
7
8export function generateSlug(title: string): string {
9 return title
10 .toLowerCase()
11 .replace(/[^a-z0-9]+/g, "-")
12 .replace(/^-+|-+$/g, "");
13}

Callers 3

createBookmarkFunction · 0.90
updateBookmarkFunction · 0.90
generateContentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected