spmjs

spm@3.x

Brand new static package manager for browser.

Getting Started 󰅴 Packages

babyparse


Fast and reliable CSV parser based on PapaParse

spm install babyparse
Versions 0.4.3
Updated 10 years ago
Keywords csv, parse, parsing, parser, delimited, text, data, auto-detect, comma, tab, stream
Homepage https://github.com/Rich-Harris/BabyParse
Repository git+ssh://git@github.com/Rich-Harris/BabyParse.git
Main babyparse.js
Owner

Baby Parse

Fast and reliable CSV parser based on Papa Parse. Papa Parse is for the browser, Baby Parse is for Node.js.

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.

Basic Usage

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

// voila
rows = parsed.data;

For a complete understanding of the power of this library, please refer to the Papa Parse web site.

Credits

Rich Harris forked Papa Parse to make Baby Parse. Matt Holt (the author of Papa Parse) helps maintain this fork.

License

The original PapaParse is MIT licensed. So is BabyParse.