UNPKG

483 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var change_case_1 = require("change-case");
4function toPascalCase(str) {
5 if (str.charAt(0) === '_') {
6 return str.replace(/^(_*)(.*)/, function (_match, underscorePrefix, typeName) { return "" + underscorePrefix + change_case_1.pascalCase(typeName || ''); });
7 }
8 return change_case_1.pascalCase(str || '');
9}
10exports.toPascalCase = toPascalCase;
11//# sourceMappingURL=to-pascal-case.js.map
\No newline at end of file