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

Method endProcess

src/Result.ts:67–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66 }
67 endProcess() {
68
69 if (this.converter.parseRuntime.then && this.converter.parseRuntime.then.onfulfilled) {
70 if (this.needEmitAll) {
71 this.converter.parseRuntime.then.onfulfilled(this.finalResult);
72 }else{
73 this.converter.parseRuntime.then.onfulfilled([]);
74 }
75 }
76 if (this.converter.parseRuntime.subscribe && this.converter.parseRuntime.subscribe.onCompleted) {
77 this.converter.parseRuntime.subscribe.onCompleted();
78 }
79 if (this.needPushDownstream && this.converter.parseParam.downstreamFormat === "array") {
80 pushDownstream(this.converter, "]" + EOL);
81 }
82 }
83}
84
85function processLineByLine(

Callers 4

browser.jsFile · 0.80
csvtojson.min.jsFile · 0.80
Converter.jsFile · 0.80
processEndMethod · 0.80

Calls 1

pushDownstreamFunction · 0.70

Tested by

no test coverage detected