hexo/node_modules/camel-case/dist.es2015/index.js

17 lines
664 B
JavaScript
Raw Permalink Normal View History

2023-10-03 11:14:36 +08:00
import { __assign } from "tslib";
import { pascalCase, pascalCaseTransform, pascalCaseTransformMerge, } from "pascal-case";
export function camelCaseTransform(input, index) {
if (index === 0)
return input.toLowerCase();
return pascalCaseTransform(input, index);
}
export function camelCaseTransformMerge(input, index) {
if (index === 0)
return input.toLowerCase();
return pascalCaseTransformMerge(input);
}
export function camelCase(input, options) {
if (options === void 0) { options = {}; }
return pascalCase(input, __assign({ transform: camelCaseTransform }, options));
}
2023-09-25 15:58:56 +08:00
//# sourceMappingURL=index.js.map