title: Stream response to file using Fetch API and fs.createWriteStream
body: <p>I'm creating an Electron application and I want to stream an image to a file (so basically download it).</p>
  
  <p>I want to use the native Fetch API because the request module would be a big overhead.</p>
  
  <p>But there is no pipe method on the response, so I can't do something like</p>
  
  <pre><code>fetch('https://imageurl.jpg')
      .then(response =&gt; response.pipe(fs.createWriteStream('image.jpg')));
  </code></pre>
  
  <p>So how can I combine <code>fetch</code> and <code>fs.createWriteStream</code>?</p>