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

Function kebabToScreamingSpaceCase

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

Source from the content-addressed store, hash-verified

149 * e.g. "some-example-string" returns a "SOME EXAMPLE STRING".
150 */
151export function kebabToScreamingSpaceCase(input: string): string {
152 return input.split("-").join(" ").toUpperCase();
153}
154
155/**
156 * e.g. "some_example_string" returns a "someExampleString".

Callers 2

OverflowMenuContainerFunction · 0.90
buildShowCreateStatementFunction · 0.90

Calls 2

joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected