Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.32 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.32 KB

Node.js CSV Merger

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.

Prerequisites

  • Node.js installed on your machine
  • npm (Node Package Manager)

Installation

  1. Clone the repository or download the source code.
  2. Navigate to the project directory.
  3. Install the dependencies using npm:
npm install

Usage

  1. Place the CSV files you want to merge into the files folder.
  2. Run the script to merge the CSV files:
node merge-csv.js

Project Structure

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
``

Dependencies

  • csv-parser: A streaming CSV parser for Node.js.
  • fast-csv: A library to parse and format CSVs.
  • fs: Node.js file system module.

License

This project is licensed under the ISC License.

Author

Kurt Russelle Marmol