MCPcopy
hub / github.com/MiniMax-AI/cli / kebabToCamel

Function kebabToCamel

src/args.ts:4–6  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

2import type { OptionDef } from './command';
3
4function kebabToCamel(str: string): string {
5 return str.replace(/-([a-z])/g, (_, c: string) => c.toUpperCase());
6}
7
8/** Extract camelCase flag name from an OptionDef.flag string, e.g. '--max-tokens <n>''maxTokens' */
9function flagKey(def: OptionDef): string | null {

Callers 3

flagKeyFunction · 0.85
scanCommandPathFunction · 0.85
parseFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected