MCPcopy Create free account
hub / github.com/form-data/form-data / onOutput

Function onOutput

test/run.js:40–46  ·  view source on GitHub ↗

* Collects output delivered in chunks * @param {string} chunk - partial output

(chunk)

Source from the content-addressed store, hash-verified

38 * @param {string} chunk - partial output
39 */
40 function onOutput(chunk) {
41 if (this._verbose > 1) { // eslint-disable-line no-invalid-this
42 process.stderr.write(chunk);
43 } else {
44 output += chunk;
45 }
46 }
47
48 node.stdout.on('data', onOutput.bind(this));
49 node.stderr.on('data', onOutput.bind(this));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected