UNPKG

demeine

Version:

DDDD - Distributed Domain Driven Design

27 lines (26 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { camelCase: function() { return camelCase; }, capitalize: function() { return capitalize; } }); var camelCase = function(str) { return str.replace(/_([a-z])/g, function(g) { return g[1].toUpperCase(); }); }; var capitalize = function(str) { return "".concat(str.charAt(0).toUpperCase()).concat(str.slice(1)); };