MCPcopy Create free account
hub / github.com/webpack/webpack-cli / hyphenToUpperCase

Function hyphenToUpperCase

test/utils/test-utils.js:15–21  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13const isWindows = process.platform === "win32";
14
15const hyphenToUpperCase = (name) => {
16 if (!name) {
17 return name;
18 }
19
20 return name.replaceAll(/-([a-z])/g, (g) => g[1].toUpperCase());
21};
22
23const processKill = (process) => {
24 if (isWindows) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected