I wanted to stream the data from an upload directly into the CSV reader, and was disappointed to see that node.js, does not, from what I can tell, provide a memory-based stream object that could be used for this.
Luckily, ya-csv was basically already setup to allow manual calls of parse() and pieces of data, except that the end() handler was inlined and could not be called from the outside. This is mainly what this patch changes.
I wanted to stream the data from an upload directly into the CSV reader, and was disappointed to see that node.js, does not, from what I can tell, provide a memory-based stream object that could be used for this.
Luckily, ya-csv was basically already setup to allow manual calls of parse() and pieces of data, except that the end() handler was inlined and could not be called from the outside. This is mainly what this patch changes.