(input: string)
| 127 | * e.g. "some-example-string" returns a "Some Example String". |
| 128 | */ |
| 129 | export 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" |
no test coverage detected