MCPcopy Create free account
hub / github.com/pacexy/flow / camelToSnake

Function camelToSnake

apps/reader/src/styles.ts:25–26  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

23}
24
25const camelToSnake = (str: string) =>
26 str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)
27
28function mapToCss(o: CSSProperties) {
29 return keys(o)

Callers 1

mapToCssFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected