title: TypeScript CLI: How to save octect-stream response from node-fetch call to Get Request?
body: <p>I am making a Get Request using Node-Fetch to a web api.  It returns octet-stream response to be saved as a file in a local.  </p>
  
  <p>I tried using downloadjs (download()) and download.js (downloadBlob()), but both of them did not work.</p>
  
  <p>downloadBlob() returned "createObjectURL is not a function" error, and download() returned "window is not defined at object." error.</p>
  
  <p>The call is below</p>
  
  <pre><code>let res = await fetch(apiURL, {
      method: 'GET',
      headers: {
        'Content-Type': 'application/json',
      }
    })
  </code></pre>
  
  <p>I think I am completely lost here.  What should I do to download the file to local drive? How should I construct .then block here?</p>