Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babyparse

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babyparse - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

babyparse.js
/*
Baby Parse
v0.4.0
v0.4.1
https://github.com/Rich-Harris/BabyParse

@@ -5,0 +5,0 @@

{
"name": "babyparse",
"version": "0.4.0",
"version": "0.4.1",
"title": "BabyParse",

@@ -5,0 +5,0 @@ "repository": {

@@ -1,13 +0,9 @@

BabyParse
Baby Parse
=========
I needed a really fast and reliable CSV parser. [PapaParse.com](http://papaparse.com/#demo) 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
Fast and reliable CSV parser based on [Papa Parse](http://papaparse.com). Papa Parse is for the browser, Baby Parse is for Node.js.
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.
This package has all the functionality of Papa Parse except for web workers and parsing directly from files. You can pass a string to Baby Parse and use any of the other config options as described in the [Papa Parse documentation](http://papaparse.com/docs).
Don't thank me, thank [@mholt](https://github.com/mholt). (Thanks Matt!)
Usage
Basic Usage
-----

@@ -17,3 +13,3 @@

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

@@ -24,3 +20,11 @@ // voila

For a complete understanding of the power of this library, please refer to the [Papa Parse web site](http://papaparse.com).
Credits
-------
Rich Harris forked Papa Parse to make Baby Parse. [Matt Holt](https://twitter.com/mholt6) (the author of Papa Parse) helps maintain this fork.
License

@@ -27,0 +31,0 @@ -------

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc