Fast and reliable CSV parser based on PapaParse

npm install babyparse
3 downloads in the last week
5 downloads in the last month


I needed a really fast and reliable CSV parser. is the best one I've come across yet. But it's wrapped up as a jQuery plugin like it's 2006 or something :P

So I stripped out the actual parsing bit and made it Node/AMD compatible, so that I could drop it into non-jQuery projects. The code hasn't been touched other than that - I think there's a load of logic for handling streams and whatnot. I honestly don't know and can't be bothered to look. It seems pretty decent. In the project I'm working on now it was an order of magnitude quicker than the thicket of regex hacks it replaced.

Don't thank me, thank @mholt. (Thanks Matt!)


// see for config options
parser = new Parser( config );

// pass in the contents of a csv file
parsed = parser.parse( csv );

// voila
rows = parser.results.rows;


The original PapaParse is MIT licensed. So is BabyParse.

npm loves you