I have a function, that downloads an image.
numberOfRowsInSection
But when I try to run it, I get function download(uri, filename, callback) {
request(uri)
.on('error', function(err) {
console.log(err)
})
.pipe(fs.createWriteStream(filename)).on('close', callback);
};
error.
I tried
options.uri is a required argument