MCPcopy Create free account
hub / github.com/openai/plugins / writeText

Function writeText

plugins/plugin-eval/src/lib/files.js:81–84  ·  view source on GitHub ↗
(targetPath, content)

Source from the content-addressed store, hash-verified

79}
80
81export async function writeText(targetPath, content) {
82 await fs.mkdir(path.dirname(targetPath), { recursive: true });
83 await fs.writeFile(targetPath, content, "utf8");
84}
85
86export async function writeJson(targetPath, payload) {
87 await writeText(targetPath, `${JSON.stringify(payload, null, 2)}\n`);

Callers 5

emitFunction · 0.90
runCliFunction · 0.90
runProcessCaptureFunction · 0.90
runBenchmarkFunction · 0.90
writeJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected