koles / ya-csv

CSV parser/writer for Node.js
MIT License
242 stars 55 forks source link

Allow feeding manual feeding of data to ya-csv #7

Closed miracle2k closed 13 years ago

miracle2k commented 13 years ago

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.