mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.44k stars 1.14k forks source link

Node.js stream API support #474

Open gabegorelick opened 6 years ago

gabegorelick commented 6 years ago

PapaParse supports parsing a Node stream, but only has a proprietary API for stream consumers (beforeFirstChunk, chunk, step, and error callbacks). It would be nice if PapaParse returned a Node.js stream in addition to its current lifecycle callbacks.

Prior art: https://www.npmjs.com/package/csv#stream-example https://github.com/C2FO/fast-csv

pokoli commented 6 years ago

I think it will be a very good addition but we should keep the current API for browser support.

gabegorelick commented 6 years ago

I think it will be a very good addition but we should keep the current API for browser support.

Totally agree.