dom-console
console.log output in the dom
description
very convenient when experimenting with npm libraries in the browser. For example using requirebin.com
By default.it adds a console DOM element to the bottom of the page, which can be cleared and minimized/maximized via buttons and shows everything that can otherwise be seen in the DevTools JavaScript console.
example
see http://serapath.github.io/dom-console
usage
var Buffer = Buffervar domconsole = var opts = lineLength: 60 // defaultvar api = /*element*/ api console var x = leaf: 'leaf' x'circular1' = xxy = {}xycircular2 = xyconsole consoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsoleconsole consoleconsoleconsoleconsolevar div = documentdivinnerHTML = '<div><div>asdf</div></div>'consoleconsole console // api usageapi // expand or minimize the dom-consoleconsole // retrieve the log that was logged to the dom-consoleapiclear // clear the content of the dom-console apiapiapi // also logs errors nicely { var x = JSON } consoleconsole