init project

This commit is contained in:
root
2026-07-31 13:12:54 -04:00
parent 0da92d5e02
commit f3863f760c
7215 changed files with 1860260 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
function words(input) {
return input
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
.split(/[\s_-]+/)
.filter(Boolean);
}
export function pascalCase(input) {
return words(input)
.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase())
.join('');
}
export function camelCase(input) {
const pascal = pascalCase(input);
return pascal.charAt(0).toLowerCase() + pascal.slice(1);
}
export function kebabCase(input) {
return words(input)
.map((w) => w.toLowerCase())
.join('-');
}
//# sourceMappingURL=strings.js.map