MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / formatPropertyLabel

Function formatPropertyLabel

src/utils/string.utils.ts:137–140  ·  view source on GitHub ↗
(property: string, isDefaultValue: boolean)

Source from the content-addressed store, hash-verified

135 const entryLabel = "entryLabel" in options ? options.entryLabel : null;
136
137 function formatPropertyLabel(property: string, isDefaultValue: boolean): string {
138 const label = convertCamelCaseToTitleCase(stripIdSuffix(property));
139 return isDefaultValue ? label : bold(label);
140 }
141
142 function formatPropertyValue(entry: T, property: string): string {
143 // handle mentionable properties

Callers 1

Calls 2

stripIdSuffixFunction · 0.85

Tested by

no test coverage detected