MCPcopy Index your code
hub / github.com/BuilderIO/agent-native / camelCaseArgs

Function camelCaseArgs

packages/core/src/scripts/parse-args.ts:37–46  ·  view source on GitHub ↗
(
  args: Record<string, string>,
)

Source from the content-addressed store, hash-verified

35 * Convert kebab-case keys to camelCase.
36 */
37export function camelCaseArgs(
38 args: Record<string, string>,
39): Record<string, string> {
40 const result: Record<string, string> = {};
41 for (const [key, value] of Object.entries(args)) {
42 const camel = key.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
43 result[camel] = value;
44 }
45 return result;
46}

Callers 1

utils.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected