Skip to content

Commit

Permalink
New case parser
Browse files Browse the repository at this point in the history
  • Loading branch information
JWittmeyer committed Oct 10, 2024
1 parent babdbe4 commit 75fa5a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions case-types-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export function snakeCaseToCamelCase(str: string) {
.replace('_', '')
);
}
export function camelCaseToWords(s: string) {
const result = s.replace(/([A-Z])/g, ' $1');
return result.charAt(0).toUpperCase() + result.slice(1);
}

export function convertVarToCamel(obj: any) {
if (isDict(obj)) {
Expand Down

0 comments on commit 75fa5a5

Please sign in to comment.