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

Function jsSafeName

packages/create/src/utils.ts:12–17  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

10}
11
12export function jsSafeName(name: string) {
13 return name
14 .split(/[^a-zA-Z0-9]/)
15 .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
16 .join('')
17}
18
19export function formatCommand({
20 command,

Callers 1

utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected