node-csv
A strong pick. 1st of 8 CSV and Excel files.
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
Overall7.8
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- dependents.repos: Highest real-use signal in the category
- pkgpulse.com/guides/papaparse-vs-csv-parse-vs-fast-csv-parsing-2026: Recommended for messy server-side CSV
- npm downloadsSame4WeeksYearAgo: Growth below the median and below CSV peers
GPT-6.2 Sol: 8.1, likely 7.0 to 9.0
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.
- csv.js.org: The suite provides a full CSV pipeline, from generation through writing.
- github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md: Recent parser patches address packaging, types, and security.
- github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/SpreadsheetFile/v2/fromFile.operation.ts: An established automation platform uses the parser for CSV extraction.
- papaparse.com/docs: Papa Parse accepts browser File objects and remote URLs directly.
- github.com/adaltas/node-csv/issues/567: A stable-version report documents a row recovery failure.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Parser downloads grew more slowly than the catalog baseline.
Needed by many5.2
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- project.note: Repository holds four CSV packages; csv-parse is the parser
- pkgpulse.com/guides/papaparse-vs-csv-parse-vs-fast-csv-parsing-2026: Recommended for server-side Node.js ETL; Papa Parse preferred for browsers
GPT-6.2 Sol: 5.3, likely 4.1 to 6.6
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.
- csv.js.org: Suite covers CSV generation, parsing, transformation, and writing.
- csv.js.org/parse/distributions: Node.js and browser distributions.
- survey.stackoverflow.co/2026/technology/data: Node.js was used by 46.4% of web technology respondents. The survey does not measure CSV tooling.
Helps a lot8.1
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- pkgpulse.com/guides/papaparse-vs-csv-parse-vs-fast-csv-parsing-2026: Called the most spec-compliant parser; slower sync parsing than fast-csv in their test
- github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md: 7.x adds delimiter_auto, CsvError export, typed column keys
- martsinlabs.github.io/csv-pipe/guide/benchmarks: Third-party benchmark shows csv-parse faster than papaparse on a small dataset
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.1, likely 7.0 to 9.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.
- csv.js.org/parse/api: Documents API choices, memory tradeoffs, and examples.
- csv.js.org/parse/options: Documents delimiter, header, casting, and tolerance options.
- csv.js.org/parse/errors: Error codes carry line and field context.
- npm latestVersion, hasTypes: Stable version 7.0.3 ships TypeScript declarations.
- github.com/adaltas/node-csv/issues/567: Reports dropped valid rows with error skipping enabled.
- github.com/adaltas/node-csv/issues/536: Reports incorrect UTF-16LE values with automatic encoding detection and trim.
- github.com/willfarrell/csv-benchmarks: Independent tests of v5 show that results vary with quoting and workload.
- martsinlabs.github.io/csv-pipe/guide/benchmarks: A competing library's benchmark finds Papa Parse ahead of csv-parse v7 on four in-memory inputs.
Holds up over time7.2
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github commitsLastYear: 106 commits in the last year
- npm versionsLastYear: 6 versions, latest 7.0.3 on 2026-09-25
- github openPullRequests: 42 open PRs vs 117 merged
- github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md: 6.0.0 renamed options and error codes; 7.0.0 noted as published by mistake
GPT-6.2 Sol: 7.4, likely 6.1 to 8.6
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.
- github commitsLastYear, pushedAt, openIssues, openPullRequests: 106 suite-wide commits, a November push, and 47 open issues and 42 open pull requests in the snapshot.
- npm versionsLastYear, latestPublishedAt: Six parser versions, with 7.0.3 published September 25, 2026.
- github.com/adaltas/node-csv: Names Adaltas as sponsor and lists a lead maintainer.
- github.com/adaltas/node-csv/pull/490: The lead maintainer merged the CommonJS packaging fix the next day.
- github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md: Records the CommonJS fix in 7.0.1 and type fixes in 7.0.3.
- npm.io/package/csv-parse: The package snapshot for 7.0.2 lists one npm maintainer.
Used widely7.6
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- npm downloadsLast4Weeks: 113.9M vs 32.9M a year ago, ratio about 3.5
- medianDownloadsRatio: Median 4.1, so it is growing more slowly than the market
- dependents.repos: 196,252 repos, about 5x the next peer (SheetJS 39.5k)
- github stars: 4.3k stars, fewer than Papa Parse or SheetJS
GPT-6.2 Sol: 7.1, likely 5.9 to 8.3
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.
- dependents repos, packages: 196,252 indexed repositories and 1,715 indexed npm packages.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.46× year-over-year growth against a 4.1× median.
- peers Papa Parse, fast-csv: Papa Parse grew 5.01× and fast-csv grew 7.89×, from smaller indexed repository bases.
- github stars, project note, hackerNews stories, bluesky posts: 4,289 suite-wide stars, zero matched HN stories, and one Bluesky post.
- github.com/adaltas/node-csv/blob/master/packages/csv/package.json: Installing the umbrella csv package pulls in csv-parse.
Vouched for7.3
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.0 to 8.0
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.
- pkgpulse.com/guides/papaparse-vs-csv-parse-vs-fast-csv-parsing-2026: Independent guide recommends it for Node ETL
- security.snyk.io/package/npm/csv-parse: Snyk lists it as a key ecosystem project
- leanylabs.com/blog/js-csv-parsers-benchmarks: Included in independent parser benchmarks
- hackerNews/bluesky: 0 HN stories, 1 Bluesky post
GPT-6.2 Sol: 8.0, likely 6.9 to 9.1
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.
- github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/SpreadsheetFile/v2/fromFile.operation.ts: n8n calls csv-parse in its CSV extraction implementation.
- github.com/firebase/firebase-tools/blob/main/package.json: Firebase CLI declares csv-parse v7 as a runtime dependency.
- github.com/langfuse/langfuse/blob/main/worker/package.json: Langfuse's worker declares csv-parse v7 as a runtime dependency.
- reddit.com/r/node/comments/1f2m4b6/what_you_use_when_youve_got_to_import_large_csv: A user reports improved import performance after switching to streaming.
- github.com/willfarrell/csv-benchmarks: Independent stream tests placed csv-parse v5 ahead of fast-csv on the tested inputs.
Safe7.2
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- npm dependencies: 0 runtime dependencies
- advisories: Moderate prototype replacement in 2026, ReDoS in 2019, both fixed
- security.snyk.io/vuln/SNYK-JS-CSVPARSE-19639017: Columns + group_columns_by_name prototype pollution, fixed in 7.0.2
- scorecard score: 5.9; Security-Policy, Branch-Protection, SAST, Fuzzing at 0
GPT-6.2 Sol: 7.4, likely 6.1 to 8.5
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.
- npm license, dependencies: MIT licence and zero parser runtime dependencies.
- scorecard score, checks: 5.9 overall, with full marks for token permissions and workflow safety alongside several weak checks.
- github.com/adaltas/node-csv/security/advisories/GHSA-8cw4-87c7-c6xx: Moderate advisory identifies 7.0.2 as patched.
- osv.dev/vulnerability/GHSA-8cw4-87c7-c6xx: OSV published its record on September 8 after the August 2 patch.
- github.com/advisories/GHSA-582f-p4pg-xc74: The 2019 denial-of-service advisory lists 4.4.6 as patched.
- github.com/adaltas/node-csv/issues/506: Request for a v5 security backport remains open.
- github.com/adaltas/node-csv/blob/288c9c6877b405c530181f6fb4967c63e0d8ffa1/.github/workflows/publish.yml: The release workflow configures OpenID Connect for npm publishing.
- npm.io/package/csv-parse: The 7.0.2 snapshot lists GitHub Actions build provenance and one npm maintainer.
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
- npm downloads, 4 weeks
- 114M ×3.5 in a year
- GitHub stars
- 4.3k
- Commits, 12 months
- 106
- npm version
- 7.0.3 Sept 2026
- Versions, 12 months
- 6
- Advisories, 24 months
- 1 of 2 ever
- OpenSSF Scorecard
- 5.9 out of 10, Nov 2026
- Licence
- MIT
The repository holds four CSV packages. csv-parse is the parser.
Read on 21 November 2026 from GitHub (adaltas/node-csv), npm (csv-parse), OSV and the OpenSSF Scorecard.
CSV and Excel files
- 7.8node-csv
- 7.6Papa Parse
- 6.7read-excel-file
- 6.5fast-csv
- 6.4write-excel-file
- 5.8SheetJS
- 5.2node-xlsx
- 4.2ExcelJS