0

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

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

2 Comments

thanks a lot for your instant answer. I will check the module and will let you know if i need further help. Thanks
i have seen that it also add data in a array which is added as a row which somehow i able to do it but how column wise. Any way?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.