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

Function formatNamespace

src/components/ToolWidgets.tsx:1305–1312  ·  view source on GitHub ↗
(ns: string)

Source from the content-addressed store, hash-verified

1303
1304 // Format namespace for display (handle kebab-case and snake_case)
1305 const formatNamespace = (ns: string) => {
1306 return ns
1307 .replace(/-/g, ' ')
1308 .replace(/_/g, ' ')
1309 .split(' ')
1310 .map(word => word.charAt(0).toUpperCase() + word.slice(1))
1311 .join(' ');
1312 };
1313
1314 // Format method name
1315 const formatMethod = (m: string) => {

Callers 1

MCPWidgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected