0.2.2 • Published 11 years ago

hermit v0.2.2

Weekly downloads
161
License
-
Repository
github
Last release
11 years ago

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