MCPcopy 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
116function slugify(name: string): string {
117 return name
118 .toLowerCase()
119 .replace(/[^a-z0-9]+/g, "-")
120 .replace(/^-+|-+$/g, "");
121}
122
123async function main() {
124 if (!fs.existsSync(changesetsDir)) {

Callers 1

mainFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected