MCPcopy Create free account
hub / github.com/Keyang/node-csvtojson / pushDownstream

Function pushDownstream

v2/Result.js:152–160  ·  view source on GitHub ↗
(conv, res)

Source from the content-addressed store, hash-verified

150 processLineByLine(lines, conv, offset, needPushDownstream, cb);
151}
152function pushDownstream(conv, res) {
153 if (typeof res === "object" && !conv.options.objectMode) {
154 var data = JSON.stringify(res);
155 conv.push(data + (conv.parseParam.downstreamFormat === "array" ? "," + os_1.EOL : os_1.EOL), "utf8");
156 }
157 else {
158 conv.push(res);
159 }
160}

Callers 3

Result.jsFile · 0.70
processLineByLineFunction · 0.70
processRecursiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected