chore(root): prepare workspace for alpha (#276)

This commit is contained in:
rahim
2025-12-21 20:26:13 +11:00
committed by GitHub
parent 5ddf02278d
commit b89fef56dd
247 changed files with 1197 additions and 446 deletions
@@ -0,0 +1,23 @@
/**
* Converts a string to camel case.
*
* @param str - The string to convert.
* @returns The camel case string.
*/
export function toCamelCase(str: string): string {
return str
.toLowerCase()
.replace(/[-_]([a-z])/g, (_$0, $1) => $1.toUpperCase());
}
/**
* Converts a string to kebab case.
*
* @param str - The string to convert.
* @returns The kebab case string.
*/
export function toKebabCase(str: string): string {
return str
.replace(/([A-Z])/g, '-$1')
.toLowerCase();
}