fauna-gql-upload
Version:
Manage your FaunaDB resources in within your project and upload them using a single command
13 lines (12 loc) • 406 B
JavaScript
;
/*
From StackOverflow:
https://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case
*/
exports.__esModule = true;
function camelize(str) {
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
return index === 0 ? word.toLowerCase() : word.toUpperCase();
}).replace(/\s+/g, "").replace(/(-|_)/g, "");
}
exports["default"] = camelize;