lbdremy/node-csv-stream — pull request #5 by Lukazar (2014-04-03 22:13:50+00:00)
Title: Added support for multiple line endings in a single file

Hey!

I had a use case where a user would upload a csv file and then I'd parse it converting it to JSON. Since a user would submit a windows csv ( \r line endings ) or a *nix csv ( \n line endings), it was necessary for me to allow an or case when determining the value of this.endLine.

Therefore I introduced a bit of code to allow this. endLine can now be an array. To maintain backward compatibility, I did not mandate an array to be passed. I found this useful and thought perhaps it should be included.

Cheers