Nodejs Script to Add Rows in CSV File Through Terminal

Filling out a CSV file through Office Excel or LibreOffice Calc is easy enough, but you may find it quicker to type in fields on a terminal, particularly when you want to process the data before entry, use defaults, or keep the entry process totally mouse-free. [Read More]
csv  script 

Export MongoDB Collection Data In CSV From Node Express Mongoose Application

Suppose a student collection in mongoDB have some data that we want to export in a CSV file from a Mongoose, Node, and Express app. For simplicity, let us assume only two fields in Mongoose schema: lastName and firstName. To export a CSV file, install moment, json2csv, and mongo-date-query (optional) npm packages: [Read More]

Node Express Endpoint to Upload and Process CSV File

It is quite common in Node Express backend development to come across a requirement of parsing and processing CSV file. Usually, it is to store the content in database after processing. In this post we will upload a CSV file, store it temporarily in server directory to fetch all rows in JSON form, push all rows in an array, and remove the temporary file. [Read More]