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

Function pushDownstream

src/Result.ts:156–163  ·  view source on GitHub ↗
(conv: Converter, res: ProcessLineResult)

Source from the content-addressed store, hash-verified

154 processLineByLine(lines, conv, offset, needPushDownstream, cb);
155}
156function pushDownstream(conv: Converter, res: ProcessLineResult) {
157 if (typeof res === "object" && !conv.options.objectMode) {
158 const data = JSON.stringify(res);
159 conv.push(data + (conv.parseParam.downstreamFormat === "array" ? "," + EOL : EOL), "utf8");
160 } else {
161 conv.push(res);
162 }
163}

Callers 4

processResultMethod · 0.70
endProcessMethod · 0.70
processLineByLineFunction · 0.70
processRecursiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected