title: Minify HTML using a Node.js module
body: <p>I have HTML in a variable and before render it and I want to minify it. I know there are console minifiers such as:</p>
  
  <ul>
  <li><a href="https://npmjs.org/package/html-minifier" rel="noreferrer">html-minifier</a></li>
  </ul>
  
  <p>But I want to minify in code, like this:</p>
  
  <pre><code>var minifier = require ('some-minifier');
  var notMinifiedHtml = "&lt;html&gt;...&lt;/html&gt;";
  var minifiedHtml = minifier(notMinifiedHtml);
  </code></pre>
  
  <p>But I don't know such <code>some-minifier</code> library...</p>