MCPcopy
hub / github.com/unplugin/unplugin-vue-components / pascalCase

Function pascalCase

src/core/utils.ts:21–23  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

19}
20
21export function pascalCase(str: string) {
22 return capitalize(camelCase(str))
23}
24
25export function camelCase(str: string) {
26 return str.replace(/-(\w)/g, (_, c) => (c ? c.toUpperCase() : ''))

Callers 7

transform.test.tsFile · 0.90
onUpdateMethod · 0.90
ArcoResolverFunction · 0.90
transformComponentFunction · 0.90
transformDirectiveFunction · 0.90
getNameFromFilePathFunction · 0.85

Calls 2

capitalizeFunction · 0.85
camelCaseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…