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 prefer request() because you can use both http and https with it.
request('http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg') .pipe(fs.createWriteStream('cat.jpg'))