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

Function toModuleSegment

packages/create/scripts/generate-manifest.mjs:456–458  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

454}
455
456function toModuleSegment(value) {
457 return value.toLowerCase().replace(/[^a-z0-9_-]+/g, '-')
458}
459
460function writeGeneratedModule(file, source) {
461 mkdirSync(dirname(file), { recursive: true })

Callers 1

writeWorkerManifestFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected