MCPcopy Create free account
hub / github.com/antvis/AVA / readJSONFile

Function readJSONFile

src/cli/io.ts:38–40  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

36
37/** Accept a plain file path or stdin while retaining the shared input limits. */
38export function readJSONFile(path: string): Promise<unknown> {
39 return readJSON(path === '-' ? '-' : `@${path}`);
40}
41
42export async function writeHTML(path: string | undefined, html: string): Promise<{ output: string }> {
43 if (!path?.trim()) throw new Error('--output is required.');

Callers 3

runFunction · 0.90
runFunction · 0.90
runFunction · 0.90

Calls 1

readJSONFunction · 0.70

Tested by

no test coverage detected