MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / capitalize

Function capitalize

restored-src/src/utils/stringUtils.ts:20–22  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

18 * @example capitalize('hello world') → 'Hello world'
19 */
20export function capitalize(str: string): string {
21 return str.charAt(0).toUpperCase() + str.slice(1)
22}
23
24/**
25 * Returns the singular or plural form of a word based on count.

Callers 13

ModelPickerFunction · 0.85
MCPAgentServerMenuFunction · 0.85
MCPRemoteServerMenuFunction · 0.85
MCPStdioServerMenuFunction · 0.85
getSourceTitleFunction · 0.85
ColorPickerFunction · 0.85
toIDEDisplayNameFunction · 0.85
getToolSummaryTextFunction · 0.85
renderModelSettingFunction · 0.85
getAgentModelDisplayFunction · 0.85
validatePermissionRuleFunction · 0.85

Calls 3

toUpperCaseMethod · 0.80
charAtMethod · 0.80
sliceMethod · 0.45

Tested by

no test coverage detected