using the request package https://github.com/request/request
as in the docs says:
You can stream any response to a file stream.
var stream = request('https://images-na.ssl-images-amazon.com/images/I/31TsfgL0mzL._AC_SY200_.jpg').pipe(fs.createWriteStream('test1.png'))
trying to download a file/image the file "test1.png" is created but is empty the size is 0kb. The variable stream is WriteStream do I need to invoke the write method or do some other step?