writeBuffer = (filename, buffer) =>
  new Promise((resolve, reject) => {
    fs.writeFile(filename, buffer, err => (err ? reject(err) : resolve()))
  })
writeBuffer
--
Write the contents of `buffer` to `filename`


@param {String} filename
@param {Buffer} buffer
@returns {Promise<void>}