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

Function result

src/lib/log.ts:32–35  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

30 if (!quiet) s.message(`Status: ${status}`);
31 },
32 result(data: unknown) {
33 if (quiet) console.log(JSON.stringify(data));
34 else console.log(`\n${highlight(JSON.stringify(data, null, 2))}\n`);
35 },
36 error(message?: string): never {
37 p.log.error(message ?? "Unknown error");
38 process.exit(1);

Callers

nothing calls this directly

Calls 1

highlightFunction · 0.85

Tested by

no test coverage detected