How do I download a file with Node.js without using third-party libraries?
I don\'t need anything special. I only want to download a file from a giv
I suggest you to use res.download same as follow:
res.download
app.get('/download', function(req, res){ const file = `${__dirname}/folder/abc.csv`; res.download(file); // Set disposition and send it. });