Skip to content

Commit

Permalink
Merge branch 'master' into dstufft/python-support
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Mar 12, 2019
2 parents afa8ced + b2e106e commit cce6d4b
Show file tree
Hide file tree
Showing 36 changed files with 7,482 additions and 19,398 deletions.
560 changes: 280 additions & 280 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions packages/codemaker/lib/case-utils.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import * as camelcase from 'camelcase'
import * as decamelize from 'decamelize'
import { default as camelcase } from 'camelcase';
import * as decamelize from 'decamelize';

export function toCamelCase(...args: string[]) {
return camelcase(...args);
return camelcase(args);
}

export function toPascalCase(...args: string[]) {
const v = toCamelCase(...args);
return v.charAt(0).toUpperCase() + v.slice(1);
return camelcase(args, { pascalCase: true });
}

export function toSnakeCase(s: string, sep = '_') {
return decamelize(s, sep)
return decamelize(s, sep);
}
Loading

0 comments on commit cce6d4b

Please sign in to comment.