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

Method toKebabCase

packages/webpack-cli/src/webpack-cli.ts:588–590  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

586 }
587
588 toKebabCase(str: string): string {
589 return str.replaceAll(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
590 }
591
592 // Levenshtein edit distance between two strings, for "did you mean" suggestions.
593 static #distance(first: string, second: string): number {

Callers 2

WebpackCLIClass · 0.95
internalBuildConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected