MCPcopy Create free account
hub / github.com/EvoMap/evolver / capture

Function capture

test/cliContracts.test.js:16–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const { computeAssetId } = require('../src/gep/contentHash');
15
16function capture() {
17 let text = '';
18 return {
19 out: { write: s => { text += s; } },
20 text: () => text,
21 json: () => JSON.parse(text),
22 };
23}
24
25async function captureProcessOutput(fn) {
26 let stdout = '';

Callers 1

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected