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

Function writeHTML

src/cli/io.ts:42–49  ·  view source on GitHub ↗
(path: string | undefined, html: string)

Source from the content-addressed store, hash-verified

40}
41
42export async function writeHTML(path: string | undefined, html: string): Promise<{ output: string }> {
43 if (!path?.trim()) throw new Error('--output is required.');
44
45 const output = resolve(path);
46 await writeFile(output, html, { flag: 'wx', mode: 0o600 });
47
48 return { output };
49}

Callers 2

runFunction · 0.90
runFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected