html logging that's easy on the eyes.
HTML View:
Text View:
Install with component(1):
$ component install matthewmueller/pretty-html
Or with node:
$ npm install pretty-html
// html format
out.innerHTML = pretty(document.body).html();
// text format
console.log(pretty(document.body).text());
Add the DOM node you want to format.
Return a formatted html string of the element, showing all text and element nodes. The output's style is completely customizable. Take a look at pretty.css
to see some of the options.
Return a formatted text string of the element, showing all text and element nodes.
MIT