UNPKG

@agatee/cli

Version:

CLI for Agatee App

12 lines (11 loc) 480 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.camelCase = exports.capitalize = void 0; var capitalize = function (text) { return (text[0].toUpperCase() + text.slice(1)); }; exports.capitalize = capitalize; var camelCase = function (text) { return text.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) { return index == 0 ? word.toLowerCase() : word.toUpperCase(); }).replace(/-/g, ''); }; exports.camelCase = camelCase;