Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ snakeToKebab
Function
snakeToKebab
packages/effect/src/String.ts:1084–1084 ·
view source on GitHub ↗
(self: string)
Source
from the content-addressed store, hash-verified
1082
* @since 2.0.0
1083
*/
1084
export
const
snakeToKebab = (self: string): string => self.replace(/_/g,
"-"
)
1085
1086
/**
1087
* Converts a camelCase string to snake_case.
Callers
nothing calls this directly
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected