MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / kebabToTitleCase

Function kebabToTitleCase

console/src/util.ts:129–134  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

127 * e.g. "some-example-string" returns a "Some Example String".
128 */
129export function kebabToTitleCase(input: string): string {
130 return input
131 .split("-")
132 .map((word) => capitalizeSentence(word, false))
133 .join(" ");
134}
135
136/**
137 * e.g., "mysql" returns "MySQL"

Callers 6

Alert.tsxFile · 0.90
formatObjectTypeFunction · 0.90
FiltersFunction · 0.90
SinkTableFunction · 0.90
formatObjectTypeFunction · 0.90
prettyConnectorTypeFunction · 0.85

Calls 4

capitalizeSentenceFunction · 0.85
joinMethod · 0.45
mapMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected