- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
20 lines
748 B
JavaScript
20 lines
748 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.camelize = exports.isString = void 0;
|
|
var isString = function (val) { return typeof val === 'string'; };
|
|
exports.isString = isString;
|
|
var cacheStringFunction = function (fn) {
|
|
var cache = Object.create(null);
|
|
return (function (str) {
|
|
var hit = cache[str];
|
|
return hit || (cache[str] = fn(str));
|
|
});
|
|
};
|
|
var camelizeRE = /-(\w)/g;
|
|
exports.camelize = cacheStringFunction(function (str) {
|
|
return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); });
|
|
});
|
|
// export const capitalize = cacheStringFunction(
|
|
// (str: string) => str.charAt(0).toUpperCase() + str.slice(1),
|
|
// )
|
|
//# sourceMappingURL=string.js.map
|