Saving Text Files with content of Text Areas through Node.js


#1

So currently I have a textarea in my HTML document and I was wondering if their was a way to export this data into a text file and then save it into their computer. For example of code. I plan to do this through the electron menu and I would need to save this with Node.js. Any suggestions?


#2

You would use the Node fs.writeFile function to save the text on their computer. Electron is built on top of Node and Chromium. Chromium is used for the rendering and UI and Node is used for their extensive API that is designed to interact with the local system.