code: function _initConverter(){
                  var csvConverter = new Converter_1();
                  var started = false;
                  var writeStream = process.stdout;
                  csvConverter.on("record_parsed",function(rowJSON){
                      if (started){
                          writeStream.write(",\n");
                      }
                      writeStream.write(JSON.stringify(rowJSON));  //write parsed JSON object one by one.
                      if (started === false){
                          started = true;
                      }
                  });
                  writeStream.write("[\n"); //write array symbol
  
                  csvConverter.on("end_parsed",function(){
                      writeStream.write("\n]"); //end array symbol
                  });
                  csvConverter.on("error",function(err){
                      console.error(err);
                      process.exit(-1);
                  });
                  return csvConverter;
              }
docs: Convert input to process stdout
   implementation