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.
Make it possible to feed CvsReader pieces of data from memory. In a way,
this is a workaround for the lack of a memory-based stream object in
Merge pull request #7 from aspectit/master
Allow feeding manual feeding of data to ya-csv