message: Handle file downloads asynchronously
diff: @@ -139,7 +139,11 @@ exports.toMMMYY = date => {
  }
  exports.downloadToFile = (url, dest) => {
  - download(url).pipe(fs.createWriteStream(dest))
  + download(url).then(data => {
  + fs.writeFileSync(dest, data);
  + }).catch(err => {
  + console.error('Failed to download ' + url + ' (' + err.statusMessage + ')')
  + })
  }
  exports.jwtFrom = ({headers}) => {
  