MCPcopy Create free account
hub / github.com/ScrapeGraphAI/just-scrape / loadConfigFile

Function loadConfigFile

src/lib/env.ts:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19function loadConfigFile(): Record<string, unknown> {
20 if (!existsSync(CONFIG_PATH)) return {};
21 try {
22 return JSON.parse(readFileSync(CONFIG_PATH, "utf-8"));
23 } catch {
24 return {};
25 }
26}
27
28export type Env = {
29 apiKey?: string;

Callers 1

resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected