title: How to format/beautify HTML, CSS and JavaScript code in core JavaScript?
body: <p>I am trying to format code using the following JS-based plugin:
  <a href="https://github.com/beautify-web/js-beautify" rel="nofollow noreferrer">https://github.com/beautify-web/js-beautify</a></p>
  
  <p>All the examples are using NodeJS (it seems). I am only looking for a simple vanilla/code JavaScript solution.</p>
  
  <p>Something like this:</p>
  
  <pre><code>let sourceContent = " function test() { ... }"
  console.log(js-beautify(sourceContent));
  </code></pre>
  
  <p>Are there any available plugins out there? A jQuery solution is also fine.</p>