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

Method getModeByName

src/lib/acode.js:240–246  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

238 };
239
240 const getModeByName = (name) => {
241 const normalized = String(name || "")
242 .trim()
243 .toLowerCase();
244 if (!normalized) return null;
245 return getModesByName()[normalized] || null;
246 };
247
248 const listModes = () => [...getModes()];
249 const listModesByName = () => ({ ...getModesByName() });

Callers

nothing calls this directly

Calls 2

getModesByNameFunction · 0.90
StringInterface · 0.85

Tested by

no test coverage detected