build(utils): build26 from 45504a2b

This commit is contained in:
publish
2026-08-05 18:57:34 +02:00
commit 9fed1b6ef2
236 changed files with 2331 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
//#region src/string/casing.ts
function pascalCase(str) {
return str.replace(/[-_](.)/g, (_, c) => c.toUpperCase()).replace(/^(.)/, (_, c) => c.toUpperCase());
}
function camelCase(str) {
return pascalCase(str).replace(/^(.)/, (_, c) => c.toLowerCase());
}
function kebabCase(str) {
return str.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
}
function snakeCase(str) {
return str.replace(/[A-Z]/g, (m) => `_${m.toLowerCase()}`);
}
//#endregion
export { camelCase, kebabCase, pascalCase, snakeCase };
//# sourceMappingURL=casing.js.map