Convert text between UPPERCASE, lowercase, and sentence case styles.
Different programming languages and frameworks enforce strict conventions for how variables, functions, and files should be named. This is because spaces aren't allowed in most variable names.
firstName)UserProfile)user_id)btn-primary)Converting text to uppercase or lowercase seems simple until you encounter international characters. The standard JavaScript toLowerCase() function only works correctly for standard ASCII characters.
For example, the Turkish language has two types of 'i' (dotted and dotless). A standard toLowerCase() on the Turkish uppercase 'I' might produce the wrong character. Professional text manipulation libraries must use toLocaleLowerCase('tr-TR') or advanced Unicode-aware libraries to correctly change casing across all global languages.
Which casing convention is standard for creating URLs and CSS classes?