mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-03-12 02:22:07 -05:00
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
|
export const configVariableToFriendlyName = (variable: string) => {
|
||
|
return variable
|
||
|
.split("_")
|
||
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
||
|
.join(" ");
|
||
|
};
|
||
|
|
||
|
export const capitalizeFirstLetter = (string: string) => {
|
||
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
||
|
};
|