Provider config and cli-based setup

This commit is contained in:
Nick Farina
2015-07-15 22:36:45 -07:00
parent 6afff4f3e4
commit 5611e38beb
13 changed files with 233 additions and 137 deletions

9
lib/util.js Normal file
View File

@@ -0,0 +1,9 @@
// Converts "accessToken" to "Access Token"
export function camelCaseToRegularForm(camelCase: string): string {
return camelCase
// insert a space before all caps
.replace(/([A-Z])/g, ' $1')
// uppercase the first character
.replace(/^./, function(str){ return str.toUpperCase(); })
}