Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ecomfe/tempad-dev
/ snakeToKebab
Function
snakeToKebab
packages/extension/utils/string.ts:11–13 ·
view source on GitHub ↗
(str: string)
Source
from the content-addressed store, hash-verified
9
}
10
11
export
function
snakeToKebab(str: string) {
12
return
str.replace(/_/g,
'-'
).toLowerCase()
13
}
14
15
export
function
toPascalCase(str: string) {
16
return
str.replace(/(^\w|-+\w|_+\w|\s+\w)/g, (match) =>
Callers
1
string.test.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected