How to download a file with Node.js (without using third-party libraries)?

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 given URL, and then save it to a given directory.

24 thoughts on “How to download a file with Node.js (without using third-party libraries)?”

Leave a Comment