Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hermit

thlorenz2.5kMIT0.2.2

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

html, parser, terminal, highlight, console

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