Install dependencies and run the development server:
npm install
node server.js
# or
nodemon server.jsOpen http://localhost:3000 with your browser to see the result.
Compares two CSV files based on a specific column.
- Method: POST
- Content-Type:
multipart/form-data - Payload:
files:file_name1.csv(First CSV file)files:file_name2.csv(Second CSV file)option:sameoruniquesame: Returns records that exist in both filesunique: Returns records that are different between the files
columns: The column name to compare (e.g.,Username or something)
Using curl:
curl -X POST http://localhost:3000/upload \
-F "files=@file_name1.csv" \
-F "files=@file_name2.csv" \
-F "option=same" \
-F "columns=Username"