MCPcopy Index your code
hub / github.com/winfunc/opcode / formatMethod

Function formatMethod

src/components/ToolWidgets.tsx:1315–1321  ·  view source on GitHub ↗
(m: string)

Source from the content-addressed store, hash-verified

1313
1314 // Format method name
1315 const formatMethod = (m: string) => {
1316 return m
1317 .replace(/_/g, ' ')
1318 .split(' ')
1319 .map(word => word.charAt(0).toUpperCase() + word.slice(1))
1320 .join(' ');
1321 };
1322
1323 const hasInput = input && Object.keys(input).length > 0;
1324 const inputString = hasInput ? JSON.stringify(input, null, 2) : '';

Callers 1

MCPWidgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected