MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseNameList

Function parseNameList

src/index.ts:171–179  ·  view source on GitHub ↗

A JSON list of names from metadata, or null when absent or unreadable.

(value: string | null)

Source from the content-addressed store, hash-verified

169
170/** A JSON list of names from metadata, or null when absent or unreadable. */
171function parseNameList(value: string | null): string[] | null {
172 if (!value) return null;
173 try {
174 const parsed: unknown = JSON.parse(value);
175 return Array.isArray(parsed) && parsed.every((n) => typeof n === 'string') ? parsed : null;
176 } catch {
177 return null;
178 }
179}
180
181/**
182 * CODEGRAPH_SYNTH_MIN_INTERVAL_MS: the least time between two repo-wide

Callers 2

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected