MCPcopy Index your code
hub / github.com/css-modules/css-modules-require-hook / camelizeDashes

Function camelizeDashes

src/transformTokens.js:38–40  ·  view source on GitHub ↗

* @param {string} str * @return {string}

(str)

Source from the content-addressed store, hash-verified

36 * @return {string}
37 */
38function camelizeDashes(str) {
39 return str.replace(/-+(\w)/g, (m, letter) => letter.toUpperCase());
40}
41
42/**
43 * @param {object} tokens

Callers 3

transformTokens.jsFile · 0.85
camelizeDashedKeysFunction · 0.85
camelizeOnlyDashedKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…