Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
export
function
generateSlug(title: string): string {
9
return
title
10
.toLowerCase()
11
.replace(/[^a-z0-9]+/g,
"-"
)
12
.replace(/^-+|-+$/g,
""
);
13
}
Callers
3
createBookmark
Function · 0.90
updateBookmark
Function · 0.90
generateContent
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected