sqlcx-orm 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ export type Prettify<T> = { [K in keyof T]: T[K] } & {};
2
+
3
+ export function pascalCase(str: string): string {
4
+ return str
5
+ .split(/[_\-\s]+/)
6
+ .map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase())
7
+ .join("");
8
+ }
9
+
10
+ export function camelCase(str: string): string {
11
+ const pascal = pascalCase(str);
12
+ return pascal.charAt(0).toLowerCase() + pascal.slice(1);
13
+ }