@eyevinn/iaf-plugin-aws
Version:
Eyevinn Ingest Application Framework (IAF) plugin for upload and transcode in AWS
14 lines • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.toPascalCase = void 0;
function toPascalCase(inputStr) {
const pascaledString = inputStr
.replace(/_|-/g, ' ')
.replace(/(\w)(\w*)/g, (g0, g1, g2) => {
return g1.toUpperCase() + g2.toLowerCase();
})
.replace(/ /g, '');
return pascaledString;
}
exports.toPascalCase = toPascalCase;
//# sourceMappingURL=stringManipulations.js.map