https://github.com/ctohm/streaming-csv-worker
Streaming parser of CSV to JSON, made for Cloudflare Workers
https://github.com/ctohm/streaming-csv-worker
cloudflare-workers csv csv-parser stream
Last synced: 25 days ago
JSON representation
Streaming parser of CSV to JSON, made for Cloudflare Workers
- Host: GitHub
- URL: https://github.com/ctohm/streaming-csv-worker
- Owner: ctohm
- License: mit
- Created: 2021-08-05T05:31:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T23:28:42.000Z (over 2 years ago)
- Last Synced: 2024-12-20T15:23:04.515Z (6 months ago)
- Topics: cloudflare-workers, csv, csv-parser, stream
- Language: TypeScript
- Homepage:
- Size: 6.37 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streaming CSV Adapters
----
This projects contains two adapters that integrate seamlessly with CSV Parsing libraries (specifically, [PapaParse](https://www.papaparse.com/docs#remote-files) and [CSV Parse](https://csv.js.org/parse/distributions/browser_esm/) and enable taking full advantage of Transformstreams support in Cloudflare Workers.
In short, adding these adapters and their respective parser library to a Worker route you get a real-time CSV to JSON conversion microservice, achieving zero copy and the lowest [Time to First Byte](https://developer.mozilla.org/en-US/docs/Glossary/time_to_first_byte) around.
Check [the documentation](https://csv.cf-badger.com) for instructions and benchmark results.