Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
export
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
19
export
function
formatCommand({
20
command,
Callers
1
utils.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected