PapaParse


Uncategorized

Updated Mar 4th, 2022

Overview

I have heard a lot about this and wanted to dive in a little deeper.

It’s Purpose

Form npmjs.org, “Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.”

Library Details

1 million weekly downloads, 251kB in size.

Can it Write Files?

It says it has “Reverse parsing (converts JSON to CSV)”

I believe it is used in conjunction with blob/createObjectURL method as seen here.

Does it Work with React and Typescript?

react-papaparse

@types/papaparse

Alternatives

How do I use it?

Parsing an existing CSV on upload to then import into database. Import is good to restore backup or move from one database to another.

Sources

Here