MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / camelToSnake

Function camelToSnake

packages/agent-core/src/config/toml.ts:37–39  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

35}
36
37function camelToSnake(str: string): string {
38 return str.replaceAll(/[A-Z]/g, (ch: string) => `_${ch.toLowerCase()}`);
39}
40
41/* ------------------------------------------------------------------ */
42/* Read / parse */

Callers 12

salvageConfigDataFunction · 0.70
configToTomlDataFunction · 0.70
providerToTomlFunction · 0.70
modelToTomlFunction · 0.70
modelOverridesToTomlFunction · 0.70
thinkingToTomlFunction · 0.70
permissionRuleToTomlFunction · 0.70
serviceToTomlFunction · 0.70
loopControlToTomlFunction · 0.70
backgroundToTomlFunction · 0.70
hookToTomlFunction · 0.70
oauthToTomlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected