I am working to append data in csv file using fs.appendFileSync. I can easily append the data row wise but i can't find any way to append data in excel file column wise. For example, first fill column 'A' with data then column 'B' and so on. I am wondering if some one help me in this regard. Thanks in advance!
1 Answer
It will be very hard to do this task using fs.appendFileSync. Also, try not to use SYNC methods whenever possible.
For your problem I would recommend this npm module: https://www.npmjs.com/package/exceljs
You can manipulate excel files using it. To add a rows and columns, just check docs. For example: https://www.npmjs.com/package/exceljs#rows