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

Method #distance

packages/webpack-cli/src/webpack-cli.ts:593–595  ·  view source on GitHub ↗
(first: string, second: string)

Source from the content-addressed store, hash-verified

591
592 // Levenshtein edit distance between two strings, for "did you mean" suggestions.
593 static #distance(first: string, second: string): number {
594 return distance(first, second);
595 }
596
597 getLogger(): Logger {
598 // Status icons brand every webpack-cli message (`✔`/`✖`/`⚠`/`ℹ`). They sit

Callers 1

runMethod · 0.80

Calls 1

distanceFunction · 0.85

Tested by

no test coverage detected