Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ camelToSnake
Function
camelToSnake
packages/effect/src/String.ts:1101–1101 ·
view source on GitHub ↗
(self: string)
Source
from the content-addressed store, hash-verified
1099
* @since 2.0.0
1100
*/
1101
export
const
camelToSnake = (self: string): string => self.replace(/([A-Z])/g,
"_$1"
).toLowerCase()
1102
1103
/**
1104
* Converts a PascalCase string to snake_case.
Callers
nothing calls this directly
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected