Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/remix-run/react-router
/ slugify
Function
slugify
scripts/changes/migrate-changesets.ts:116–121 ·
view source on GitHub ↗
(name: string)
Source
from the content-addressed store, hash-verified
114
}
115
116
function
slugify(name: string): string {
117
return
name
118
.toLowerCase()
119
.replace(/[^a-z0-9]+/g,
"-"
)
120
.replace(/^-+|-+$/g,
""
);
121
}
122
123
async
function
main() {
124
if
(!fs.existsSync(changesetsDir)) {
Callers
1
main
Function · 0.85
Calls
1
replace
Method · 0.65
Tested by
no test coverage detected