PapaParseisthe[fastest](http://jsperf.com/javascript-csv-parsers/4) in-browser CSV (or delimited text) parser for JavaScript. It is reliable and correct according to [RFC 4180](https://tools.ietf.org/html/rfc4180), and it comes with these features:
papaparseisavailableon[npm](https://www.npmjs.com/package/papaparse). It
canbeinstalledwiththefollowingcommand:
npminstallpapaparse
Ifyoudon'twanttousenpm,[papaparse.min.js](https://unpkg.com/papaparse@latest/papaparse.min.js) can be downloaded to your project source.
Homepage&Demo
----------------
-[Homepage](http://papaparse.com)
-[Demo](http://papaparse.com/demo)
TolearnhowtousePapaParse:
-[Documentation](http://papaparse.com/docs)
Thewebsiteishostedon[GithubPages](https://pages.github.com/). Its content is also included in the docs folder of this repository. If you want to contribute on it just clone the master of this repository and open a pull request.
PapaParseforNode
--------------------
PapaParsecanparsea[ReadableStream](https://nodejs.org/api/stream.html#stream_readable_streams) instead of a [File](https://www.w3.org/TR/FileAPI/) when used in Node.js environments (in addition to plain strings). In this mode, `encoding` must, if specified, be a Node-supported character encoding. The `Papa.LocalChunkSize`, `Papa.RemoteChunkSize` , `download`, `withCredentials` and `worker` config options are unavailable.
PapaParsecanalsoparseinanodestreamingstylewhichmakes`.pipe`available.Simplypipethe[ReadableStream](https://nodejs.org/api/stream.html#stream_readable_streams) to the stream returned from `Papa.parse(Papa.NODE_STREAM_INPUT, options)`. The `Papa.LocalChunkSize`, `Papa.RemoteChunkSize` , `download`, `withCredentials`, `worker`, `step`, and `complete` config options are unavailable. To register a callback with the stream to process data, use the `data` event like so: `stream.on('data', callback)` and to signal the end of stream, use the 'end' event like so: `stream.on('end', callback)`.
GetStarted
-----------
Forusageinstructions,seethe[homepage](http://papaparse.com) and, for more detail, the [documentation](http://papaparse.com/docs).
Todiscussanewfeatureoraskaquestion,openanissue.Tofixabug,submitapullrequesttobecreditedwiththe[contributors](https://github.com/mholt/PapaParse/graphs/contributors)! Remember, a pull request, *with test*, is best. You may also discuss on Twitter with [#PapaParse](https://twitter.com/search?q=%23PapaParse&src=typd&f=realtime) or directly to me, [@mholt6](https://twitter.com/mholt6).