Skip to content

toTitleCase

toTitleCase(input): string

Defined in: packages/core/src/utils.ts:56

Converts a string to title case, handling camelCase, snake_case, and kebab-case inputs. Minor words (e.g. “a”, “and”, “the”) are lowercased unless they appear at the start.

string

The string to convert.

string

The title-cased string.