# node-csv: 7.8 out of 10

A strong pick. 1st of 8 in [CSV and Excel files](https://elestia.ai/opensource/spreadsheets/index.md).

node-csv is a mature, dependency-free CSV suite (parse, stringify, transform, generate), and csv-parse is its parser. It is one of the best choices for CSV work on the server, especially with messy input. It does not handle Excel files.

**Best for:** Node.js teams that need robust, streaming, RFC 4180-compliant CSV parsing and writing, including malformed data from outside sources.

## Scores

- **Overall: 7.8** (likely 6.8 to 8.8)
  - Claude Opus 5.5 (7.5): It is a strong, well-maintained pick for CSV on the server. It has the deepest option set, no dependencies, and the widest real use in the category. It loses points because it does nothing for Excel, its release handling has been uneven, it had two prototype-pollution fixes this year, and its download growth trails its peers. For browser parsing, Papa Parse fits better.
  - GPT-6.2 Sol (8.1): node-csv is a strong pick for new Node.js projects that need configurable streaming CSV reads and writes. Its API depth, recent fixes, and use in established tools support that recommendation. Papa Parse is easier for browser file imports, and Excel workbooks require another library. Open parsing edge cases and below-median download growth keep it below the category's default-choice tier.
- **Needed by many: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (5.0): Many backend and data projects read or write CSV at some point, but it is not needed in most projects. It covers only the CSV half of the category, not Excel. It runs in Node and has browser builds, but people mostly use it on servers.
  - GPT-6.2 Sol (5.3): CSV imports, exports, and data pipelines span many kinds of JavaScript projects. The suite supports Node.js and browsers, and its file format scope is CSV and other delimited text. The developer survey shows a large Node.js audience, while the share of developers who need dedicated CSV tooling remains an estimate.
- **Helps a lot: 8.1** (likely 7.0 to 9.1)
  - Claude Opus 5.5 (8.0): It is very complete. It follows RFC 4180, has many relax options for broken input, supports streams, async iteration and sync use, has good types, and has thorough docs at csv.js.org. Recent releases added delimiter auto-detection and generic typing. Benchmarks put its raw speed in the middle, not first, and it has no built-in row validation like fast-csv.
  - GPT-6.2 Sol (8.1): csv-parse 7.0.3 offers built-in types, structured errors, and flexible parsing through streaming, async iteration, and synchronous APIs. The docs give coding agents examples for each API, and agent accuracy remains unmeasured. Current user reports flag edge cases in malformed-row recovery and UTF-16LE trimming. Papa Parse was faster in several benchmarks, with results varying by workload and parsing mode.
- **Holds up over time: 7.2** (likely 6.1 to 8.3)
  - Claude Opus 5.5 (7.0): The project has been active since 2010. It had 106 commits and 6 npm versions in the last year, the latest in September 2026, and security fixes came quickly. It is led mainly by one maintainer at the consultancy Adaltas, and its 42 open PRs show limited review capacity. Major versions have brought renames, and 7.0.0 was published by mistake.
  - GPT-6.2 Sol (7.4): Adaltas sponsors the project, and the past year brought 106 repository commits and six parser versions on npm. A reported CommonJS export failure was merged a day after the fix was proposed and shipped in the next patch. Recent merges and npm ownership appear concentrated around one maintainer, and the open issue and pull request backlog leaves future response times uncertain.
- **Used widely: 7.6** (likely 6.5 to 8.7)
  - Claude Opus 5.5 (8.0): Downloads are about 114M per 4 weeks, and 196k dependent repositories is by far the most in the category. Downloads grew 3.5x in a year, which is below the 4.1 median, while fast-csv, Papa Parse and ExcelJS grew faster. So the very large base is losing some relative ground.
  - GPT-6.2 Sol (7.1): ecosyste.ms found 196,252 dependent repositories and 1,715 dependent npm packages, giving the parser the largest indexed repository footprint among the peers. Four-week downloads rose from 32.9 million to 113.9 million, or 3.46×, below the 4.1× catalog median and behind Papa Parse and fast-csv. CI and indirect installs inflate downloads, while repository stars cover the whole suite. Sparse social discussion and the partial index leave the pace of new direct adoption uncertain.
- **Vouched for: 7.3** (likely 6.0 to 8.6)
  - Claude Opus 5.5 (6.5): Independent comparisons consistently recommend it for server-side CSV, and Snyk rates it a key ecosystem project. The very large dependent count shows that many projects trust it in production. Survey data and current, named production endorsements are thin, and it gets almost no community discussion on HN or Bluesky.
  - GPT-6.2 Sol (8.0): n8n uses csv-parse for file extraction, and the Firebase CLI and Langfuse worker both declare it as a runtime dependency. A developer reports better large-file import performance after switching to a stream with csv-parse. An independent benchmark supports its performance against fast-csv on the tested workloads, and its use of an older parser version limits how much it says about 7.0.3.
- **Safe: 7.2** (likely 6.1 to 8.3)
  - Claude Opus 5.5 (7.0): It has zero dependencies and an MIT licence, which keeps the attack surface small. There were two prototype-pollution fixes in 2026 (6.2.1 and 7.0.2). Both were patched, but they show that options that build objects need care. The Scorecard is 5.9, with no security policy, no branch protection, no SAST and no fuzzing.
  - GPT-6.2 Sol (7.4): The MIT-licensed parser has zero runtime dependencies, and 7.0.3 includes fixes for both listed advisories. The latest security fix shipped in 7.0.2 before OSV indexed the advisory, and a request to backport it to v5 remains open. The npm publish workflow uses GitHub Actions and OpenID Connect, with one maintainer listed in the package snapshot. The 5.9 OpenSSF Scorecard flags weak build dependency pinning and gives zero credit for branch protection, a security policy, fuzzing, and static analysis.

## Good

- It has zero runtime dependencies and ships its own TypeScript types, with generic typing added in 6.x and 7.x.
- Many options handle real-world CSV: relax_quotes, relax_column_count, comments, BOM detection, casting, and now automatic delimiter detection.
- It offers a stream API, an async iterator, a sync API and a callback API, plus matching stringify and transform packages with consistent options.
- Its install base is very wide, with about 196k dependent repositories, far more than any peer.

## Bad

- It only handles CSV. Excel files need ExcelJS, SheetJS or read-excel-file.
- Two prototype-pollution bugs were fixed in 2026 (objname in 6.2.1 and columns in 7.0.2), and the Scorecard shows no security policy, no SAST and no fuzzing.
- The changelog says the 7.0.0 major was published by mistake, which suggests loose release handling. Major 6.0.0 also renamed several options and error codes.
- One independent benchmark puts its synchronous parsing behind fast-csv. Its download growth is below the median, while fast-csv and Papa Parse are growing faster.

## The numbers

- Downloads, 4 weeks: 114M
- In a year: ×3.5
- GitHub stars: 4.3k
- Commits, 12 months: 106
- Last npm release: Sept 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/adaltas/node-csv
- npm: https://www.npmjs.com/package/csv-parse

The repository holds four CSV packages. csv-parse is the parser.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
