hermit

Prints html in the terminal using colors and simple layout to reflect the document structure.

Usage no npm install needed!

<script type="module">
  import hermit from 'https://cdn.skypack.dev/hermit';
</script>

README

hermit build status

Prints html in the terminal using colors and simple layout to reflect the document structure.

Installation

npm install hermit

Usage

As Library

var hermit = require('hermit');
  , html = '<div><h3>Hello from Hermit</h3><p>A little paragraph for you</p></div>';

hermit(html, function (err, res) {
  console.log(res); 
});

Output:

Hello from Hermit           (in green)
-----------------
A little paragraph for you