MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / friendlyName

Function friendlyName

packages/react/src/components/tool-detail.tsx:140–146  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

138// ---------------------------------------------------------------------------
139
140const friendlyName = (name: string): string => {
141 const leaf = name.split(".").pop() ?? name;
142 return leaf
143 .replace(/([a-z])([A-Z])/g, "$1 $2")
144 .replace(/[_.-]/g, " ")
145 .replace(/\b\w/g, (c) => c.toUpperCase());
146};
147
148const breadcrumbParts = (name: string): string[] =>
149 name.split(".").map((p) =>

Callers 1

ToolDetailFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected