MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / toCamel

Function toCamel

packages/sdk/src/engine/model.ts:130–133  ·  view source on GitHub ↗
(prop: string)

Source from the content-addressed store, hash-verified

128// ─── Inline style helpers ─────────────────────────────────────────────────────
129
130export function toCamel(prop: string): string {
131 if (prop.startsWith("--")) return prop;
132 return prop.replace(/-([a-z])/g, (_, c: string) => (c as string).toUpperCase());
133}
134
135function toKebab(prop: string): string {
136 if (prop.startsWith("--")) return prop;

Callers 3

parseStyleAttrFunction · 0.85
setElementStylesFunction · 0.85
handleSetStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected