title: Node.js send HTML as response to client
body: <p>Is it possible in Node.js to return HTML (e.g. <code>&lt;div&gt;Test&lt;/div&gt;</code>) as response to client?</p>
  <p>I saw that option in Express on <code>sendFile()</code> method().</p>
  <p>Is there something similar in Node?</p>
  <p><strong>I found this solution:</strong></p>
  <pre><code>var myHtmlData;
  fs.readFile('./index.html', (err, data) =&gt; {
      if(err){
          throw err;
      } else {
          myHtmlData = data
      }
    })
    // and after use it 
   response.write(myHtmlData)
  </code></pre>
  <p>But I was wondering is it possible to do it with some method similar to <code>sendFile()</code> to write html directly like this <code>&lt;div&gt;Test&lt;/div&gt;</code> without reading it from another file.</p>