Home > @infiniteobjects/core-library-node > ChangeCase
Utilities to change string cases (kebab, Pascal, ENV, etc).
Signature:
export declare class ChangeCase
| Method | Modifiers | Description |
|---|---|---|
| capitalizeFirstLetter(str) | static |
|
| lowercaseFirstLetter(str) | static |
|
| lowerFirst(str) | static |
Converts the first character of string to lower case. |
| toCamel(str) | static |
Converts string to [pascal case](https://en.wikipedia.org/wiki/Camel_case). |
| toConstant(str) | static |
Converts string to constant case. i.e. What an ENVIRONMENT_VAR looks like |
| toKebab(str) | static |
Convert string to kebab-case, i.e. its dash separated form |
| toLower(str) | static |
To lower Case |
| toPascal(str) | static |
Converts string to [pascal case](https://en.wikipedia.org/wiki/Camel_case) which is a type of camel case with the first letter capitalized. |
| toSnake(str) | static |
Converts string to [snake case](https://en.wikipedia.org/wiki/Snake_case). |
| toTitle(str) | static |
Converts string to title case. i.e. Words Separared With The First Letter Capitalized |
| toUpper(srt) | static |
To upper Case |
| upperFirst(str) | static |
Converts the first character of string to upper case. |