arudradey's picture
download
raw
724 Bytes
import { __assign } from "tslib";
import { noCase } from "no-case";
export function pascalCaseTransform(input, index) {
var firstChar = input.charAt(0);
var lowerChars = input.substr(1).toLowerCase();
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
return "_" + firstChar + lowerChars;
}
return "" + firstChar.toUpperCase() + lowerChars;
}
export function pascalCaseTransformMerge(input) {
return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();
}
export function pascalCase(input, options) {
if (options === void 0) { options = {}; }
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
}
//# sourceMappingURL=index.js.map

Xet Storage Details

Size:
724 Bytes
·
Xet hash:
46a5666706eb6da84aade9fca9cccf3b823769126ee2ab170082921641414bc4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.