My Electron app does only one thing - well meant to.
User inputs a date range then clicks a button that posts a request to a web service which responds with any amount of xml files. These files need to be saved to the user's file system. (thats it - no more)
Currently I am using the fs WriteFile which is fine - but have to first make the post request on a user onclick then another onclick to save to user's fs.
What I need is for all functionality in be in one button click and no file dialogs showing during file download process.
The idea is the user can go off and do what ever else they need to do and let the app get on with retreiving data.
I am not sure about this createWriteStream. I have tried this but it is saving to the actual application as well is the users fs which is really silly.
The downLoadIItem module is not an option as it expects a url as a parameter.
Or am I not seeing the wood for the trees?
Any help appreciated:/