const exec = require('child_process').exec;
exec('curl https://hsto.org/r/w120/webt/59/cc/76/59cc7600c78a2239379574.jpeg >> 111.jpeg',
function (error, stdout, stderr) {
if(stderr)
return console.log('stderr: ' + stderr);
if (error !== null)
return console.log('exec error: ' + error);
// тут код, который производит необходимые действия над файлом 111.jpeg''
});
? в d