MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / hyphenate

Function hyphenate

packages/utils/src/css-helper.ts:39–41  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

37}
38
39function hyphenate(str: string): string {
40 return str.replace(RE_CAMEL, w => `-${w}`).toLowerCase();
41}
42
43function camelize(str: string): string {
44 return str.replace(RE_HYPHEN, (m, w) => (w ? w.toUpperCase() : ''));

Callers 1

normalizeStyleFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…