dom-console (check the README and/or SOURCE CODE for more information)

initialized with:

window.domconsole = require('dom-console') window.demo = domconsole()

Open developer tools and play with the api

// for example: demo.api.toggle() demo.api.log('hello demo') var el = domconsole({ lineLength: 5 }) var api = el.api api.log('hello el') console.log('hello both') document.body.appendChild(el)