0

I just want to download one single file to a specific location. I don't need a listener for all downloads. I just want to download one file at the beginning of the code like

download(url, save_path);

I downloaded electron-dl, but in the documentation it only seems to be covered how to catch downloads from the renderer process. Also this seems fairly complicated Electron - Download a file to a specific location

neolith
  • 699
  • 1
  • 11
  • 20
  • 2
    Have a look at this answer: https://stackoverflow.com/questions/11944932/how-to-download-a-file-with-node-js-without-using-third-party-libraries – seasick Oct 17 '19 at 07:59
  • Thank you! This seems to be what I was looking for – neolith Oct 17 '19 at 08:02
  • Possible duplicate of [How to download a file with Node.js (without using third-party libraries)?](https://stackoverflow.com/questions/11944932/how-to-download-a-file-with-node-js-without-using-third-party-libraries) – seasick Oct 17 '19 at 09:05

0 Answers0