title: Create a text file in node.js from a string and stream it in response
body: <ol>
  <li><p>I am using express.js</p></li>
  <li><p>I have a string "Hello world!"</p></li>
  <li><p>I want a user to click on </p>
  
  <pre><code>&lt;a href=/download&gt;Download&lt;/a&gt;
  </code></pre></li>
  <li><p>The user should get Hello.txt download with the text in it, NOT open a tab with the text.</p></li>
  <li><p>I have looked around for ways to achieve this, I am guessing it has something to do with creating readstreams from buffer and piping to response, but I most of the examples dealt with reading actual files from disk, I don't want to read from disk, i just want to respond with a file created from a string.</p></li>
  </ol>
  
  <p>Thanks!</p>