MCPcopy Create free account
hub / github.com/TanStack/cli / slugifyStarterName

Function slugifyStarterName

packages/cli/src/command-line.ts:46–52  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

44}
45
46function slugifyStarterName(value: string) {
47 return value
48 .trim()
49 .toLowerCase()
50 .replace(/[^a-z0-9]+/g, '-')
51 .replace(/^-+|-+$/g, '')
52}
53
54function humanizeStarterId(value: string) {
55 return value

Callers 2

resolveStarterSpecifierFunction · 0.85
listTemplateChoicesFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected