Seems like you need to use a stream-based library such as fast-csv, which also includes validation support.

NB! As the fast-csv package is not actively maintained suggesting looking into some other alternative like csv.

Answer from Risto Novik on Stack Overflow
🌐
npm
npmjs.com › package › csv-reader
csv-reader - npm
May 1, 2023 - Latest version: 1.0.12, last published: 3 years ago. Start using csv-reader in your project by running `npm i csv-reader`. There are 36 other projects in the npm registry using csv-reader.
      » npm install csv-reader
    
Published   May 01, 2023
Version   1.0.12
🌐
npm
npmjs.com › package › csv-parser
csv-parser - npm
May 7, 2026 - Latest version: 3.2.1, last published: 2 months ago. Start using csv-parser in your project by running `npm i csv-parser`. There are 1286 other projects in the npm registry using csv-parser.
      » npm install csv-parser
    
Published   May 07, 2026
Version   3.2.1
🌐
npm
npmjs.com › package › csv-parse
csv-parse - npm
2 weeks ago - npm tokens that bypass 2FA are being restricted — account changes (Aug 2026) and direct publishing (Jan 2027). Learn how to prepare →× ... The csv-parse package is a parser converting CSV text input into arrays or objects.
      » npm install csv-parse
    
Published   Jul 02, 2026
Version   7.0.1
🌐
npm
npmjs.com › package › react-csv-reader
react-csv-reader - npm
Latest version: 4.0.0, last published: 3 years ago. Start using react-csv-reader in your project by running `npm i react-csv-reader`. There are 14 other projects in the npm registry using react-csv-reader.
      » npm install react-csv-reader
    
Published   Mar 23, 2023
Version   4.0.0
🌐
npm
npmjs.com › package › csv
csv - npm
2 weeks ago - A mature CSV toolset with simple api, full of options and tested against large datasets.. Latest version: 6.6.1, last published: 14 days ago. Start using csv in your project by running `npm i csv`. There are 1138 other projects in the npm registry ...
      » npm install csv
    
Published   Jul 02, 2026
Version   6.6.1
🌐
Js
csv.js.org › parse
CSV Parse - Usage
It was first released in 2010 and is used against big data sets by a large community. Source code for this project is available on GitHub. ... Run npm install csv to install the full CSV package or run npm install csv-parse if you are only interested by the CSV parser.
🌐
GitHub
github.com › adaltas › node-csv
GitHub - adaltas/node-csv: Full featured CSV parser with simple api and tested against large datasets. · GitHub
This project provides CSV generation, parsing, transformation and serialization for Node.js.
Starred by 4.3K users
Forked by 288 users
Languages   JavaScript 53.5% | TypeScript 46.3% | CoffeeScript 0.2%
🌐
OneSchema
oneschema.co › blog › top-5-javascript-csv-parsers
Top 5 Javascript CSV Parsers
To install csv-parser, use the following command in your CLI: npm install csv-parser · ‍ · The csv package is a project that provides CSV generation, parsing, transformation and serialization for Node.js.
Find elsewhere
🌐
npm
npmjs.com › package › csvreader
csvreader - npm
June 14, 2019 - CSV file reader. Latest version: 1.0.4, last published: 6 years ago. Start using csvreader in your project by running `npm i csvreader`. There are no other projects in the npm registry using csvreader.
      » npm install csvreader
    
Published   Jun 14, 2019
Version   1.0.4
Author   Yuriy Stul
🌐
GitHub
github.com › danielgindi › node-csv-reader
GitHub - danielgindi/node-csv-reader: A CSV stream reader, with many many features, and ability to work with the largest datasets · GitHub
Automatically strips the BOM if exists (not handled automatically by node.js stream readers) npm install --save csv-reader · The options you can pass are: Name · Type · Default · Explanation · delimiter · String · , The character that ...
Starred by 35 users
Forked by 11 users
Languages   JavaScript 99.8% | Shell 0.2%
🌐
GitHub
github.com › HashirRajah › csv-reader
GitHub - HashirRajah/csv-reader: NPM package to read csv files · GitHub
NPM package to read csv files. Contribute to HashirRajah/csv-reader development by creating an account on GitHub.
Author   HashirRajah
🌐
npm
npmjs.com › package › simple-csv-reader
simple-csv-reader - npm
November 11, 2019 - Lightweight CSV reader. Latest version: 1.0.1, last published: 7 years ago. Start using simple-csv-reader in your project by running `npm i simple-csv-reader`. There are no other projects in the npm registry using simple-csv-reader.
      » npm install simple-csv-reader
    
Published   Nov 11, 2019
Version   1.0.1
🌐
npm
npmjs.com › package › fast-csv
fast-csv - npm
May 6, 2026 - CSV parser and writer. Latest version: 5.0.7, last published: 2 months ago. Start using fast-csv in your project by running `npm i fast-csv`. There are 958 other projects in the npm registry using fast-csv.
      » npm install fast-csv
    
Published   May 06, 2026
Version   5.0.7
🌐
npm
npmjs.com › package › csv-read
csv-read - npm
September 2, 2018 - npm · Sign UpSign In · 2.0.2 • Public • Published 7 years ago · Readme · Code Beta · 1 Dependency · 0 Dependents · 7 Versions · Read a CSV file using streams. Optimized for big files.
      » npm install csv-read
    
Published   Sep 02, 2018
Version   2.0.2
Author   Andi Heinkelein
🌐
Stack Abuse
stackabuse.com › reading-and-writing-csv-files-in-nodejs-with-node-csv
Reading and Writing CSV Files in Node.js with node-csv
September 15, 2023 - In this tutorial, we'll be using the node-csv suite, or rather, the csv-parse and csv-stringify modules to read and write CSV file in Node.js with examples.
🌐
npm
npmjs.com › search
csv parser - npm search
CSV parser and writer · Streaming CSV parser that aims for maximum speed as well as compatibility with the csv-spectrum test suite
🌐
Medium
ahmedhafiz70.medium.com › npm-csv-parser-tutorial-header-tsv-skiplines-7282d92c939c
npm csv-parser tutorial (header, tsv, skipLines) | by Ahmed Hafiz | Medium
June 15, 2020 - fs.createReadStream(‘data.csv’) .pipe(csv({ separator: ‘\t’, skipLines: 1, headers:dhiheaders })) .on(‘data’, (data) => results.push(data)) .on(‘end’, () => { processData(results); });
🌐
LogRocket
blog.logrocket.com › home › a complete guide to csv files in node.js
A complete guide to CSV files in Node.js - LogRocket Blog
August 14, 2024 - const fs = require("fs"); ... in the following subsections also use streams. This is a relatively tiny third-party package you can install from the npm package registry....