MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / normalizeModeKey

Function normalizeModeKey

src/cm/modelist.ts:17–21  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

15const modes: Mode[] = [];
16
17function normalizeModeKey(value: string): string {
18 return String(value ?? "")
19 .trim()
20 .toLowerCase();
21}
22
23function normalizeAliases(aliases: string[] = [], name: string): string[] {
24 const normalized = new Set<string>();

Callers 4

normalizeAliasesFunction · 0.70
addModeFunction · 0.70
removeModeFunction · 0.70
getModeFunction · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected