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

Function camelizeOnlyDashedKeys

src/transformTokens.js:24–29  ·  view source on GitHub ↗
(acc, value, key)

Source from the content-addressed store, hash-verified

22};
23
24const camelizeOnlyDashedKeys = (acc, value, key) => {
25 const camelizedKey = camelizeDashes(key);
26 if (camelizedKey !== key) acc[camelizedKey] = value;
27 else acc[key] = value;
28 return acc;
29};
30
31exports.camelizeDashes = camelizeDashes;
32exports.transformTokens = transformTokens;

Callers

nothing calls this directly

Calls 1

camelizeDashesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…