# babyparse

> Fast and reliable CSV parser based on PapaParse

Latest version **0.4.6** (published 2016-05-03) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install babyparse
pnpm add babyparse
yarn add babyparse
bun add babyparse
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.6 |
| Published | 2016-05-03 |
| First published | 2014-01-31 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/babyparse) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 259 |
| Author | Rich Harris |
| Maintainers | rich_harris, mholt |
| Keywords | csv, parse, parsing, parser, delimited, text, data, auto-detect, comma, tab, stream |

## Links

- npm: https://www.npmjs.com/package/babyparse
- Repository: https://github.com/Rich-Harris/BabyParse
- Homepage: https://github.com/Rich-Harris/BabyParse#readme
- Issues: https://github.com/Rich-Harris/BabyParse/issues
- npm.io page: https://npm.io/package/babyparse

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.4.6 (latest) — 2016-05-03
- 0.4.5 — 2016-03-18
- 0.4.4 — 2016-03-16
- 0.4.3 — 2015-03-20
- 0.4.2 — 2015-03-18
- 0.4.1 — 2014-12-21
- 0.4.0 — 2014-12-21
- 0.2.1 — 2014-08-06
- 0.2.0 — 2014-08-06
- 0.1.0 — 2014-01-31

## README

Baby Parse
=========

Fast and reliable CSV parser based on [Papa Parse](http://papaparse.com). 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](http://papaparse.com/docs).

Installation
-----

```js
// simply install using npm
npm install babyparse
```

Basic Usage
-----

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

// voila
rows = parsed.data;
```


Parse File(s)
-----

Baby Parse will assume the input is a filename if it ends in .csv or .txt.

```js
// Parse single file
parsed = Baby.parseFiles(file[, config])

rows = parsed.data
```

```js
// Parse multiple files
// Files can be either an array of strings or objects { file: filename[, config: config] }
// When using and array of objects and you include a config it will be used in place of the global config
parsed = Baby.parseFiles(files[, globalConfig])

rows = parsed[index].data
```


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
-------

The original PapaParse is MIT licensed. So is BabyParse.

---
_Source: https://npm.io/package/babyparse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
