MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / toCamelCase

Function toCamelCase

src/pkg/utils/utils.ts:442–444  ·  view source on GitHub ↗
(key: SystemConfigKey)

Source from the content-addressed store, hash-verified

440
441// 将蛇形的 key 转换为驼峰的函数名
442export function toCamelCase(key: SystemConfigKey) {
443 return key.replace(/^[a-z]|_([a-z])/g, (_, c = _) => c.toUpperCase());
444}
445
446export function cleanFileName(name: string): string {
447 // https://github.com/Tampermonkey/tampermonkey/issues/2413

Callers 4

useSystemConfigFunction · 0.90
utils.test.tsFile · 0.90
getMethod · 0.90
setMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected