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

Function parseNameList

src/index.ts:170–178  ·  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

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