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

Function kebabCase

src/core/utils.ts:29–32  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

27}
28
29export function kebabCase(key: string) {
30 const result = key.replace(/([A-Z])/g, ' $1').trim()
31 return result.split(' ').join('-').toLowerCase()
32}
33
34export function capitalize(str: string) {
35 return str.charAt(0).toUpperCase() + str.slice(1)

Callers 9

componentsResolverFunction · 0.90
directivesResolverFunction · 0.90
getStyleDirFunction · 0.90
getCompDirFunction · 0.90
getResolvedFunction · 0.90
getComponentStyleDirFunction · 0.90
IduxResolverFunction · 0.90
VantResolverFunction · 0.90
resolveComponentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…