This Node.js project merges multiple CSV files from a specified folder into a single CSV file. The CSV files should have the same column names to be merged correctly.
- Node.js installed on your machine
- npm (Node Package Manager)
- Clone the repository or download the source code.
- Navigate to the project directory.
- Install the dependencies using npm:
npm install
- Place the CSV files you want to merge into the files folder.
- Run the script to merge the CSV files:
node merge-csv.js
nodejs-csv/
├── files/ # Folder containing the CSV files to be merged
├── combined.csv # Output file for the merged CSV
├── merge-csv.js # Script to merge CSV files
├── package.json # Project configuration and dependencies
└── README.md # Project documentation
``
- csv-parser: A streaming CSV parser for Node.js.
- fast-csv: A library to parse and format CSVs.
- fs: Node.js file system module.
This project is licensed under the ISC License.