MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / humanizeCommandName

Function humanizeCommandName

src/lib/keyBindings.js:719–724  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

717}
718
719function humanizeCommandName(name) {
720 return name
721 .replace(/([a-z0-9])([A-Z])/g, "$1 $2")
722 .replace(/_/g, " ")
723 .replace(/^./, (char) => char.toUpperCase());
724}
725
726function inferReadOnly(name) {
727 if (FORCE_READ_ONLY.has(name)) return true;

Callers 2

buildAppBindingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected