"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.exec = void 0;
exports.toKebabCase = toKebabCase;
exports.toCamelCase = toCamelCase;
const node_util_1 = __importDefault(require("node:util"));
const child_process_1 = require("child_process");
exports.exec = node_util_1.default.promisify(child_process_1.exec);
function toKebabCase(anyCaseName) {
    const spacesRemoved = anyCaseName.replace(/\s/g, '-');
    const lettersOnly = spacesRemoved.replace(/[^a-zA-Z\-]/g, '');
    const lowerCased = lettersOnly.toLowerCase();
    return lowerCased;
}
function toCamelCase(kebabCaseName) {
    const words = kebabCaseName.split('-');
    for (let i = 1; i < words.length; ++i) {
        words[i] = words[i][0].toUpperCase() + words[i].slice(1);
    }
    return words.join('');
}
exports.default = {
    comment: 'This is only exported beacuse otherwise node does not recognize this file as a module'
};
