console-log

1.0.0 • Public • Published

console-log

A console widget for viewing logs in your browser.

Now, you can easily see console.log in every browser, even on mobile.

Also, the bottom is sticky - unlike chrome dev tools - so if you are scrolled to the bottom, output will track new messages, but if you scroll up, you can focus on old ones.

USE WITH BROWSERIFY

Example

if(DEVELOPMENT) require('console-log')

will add a widget in the bottom right corner of your screen.

If you want more control, and want to insert it into the DOM your self, you can access the core yourself.

var logger = require('console-log/widget')()
document.body.appendChild(logger.element)
 
logger.write('hello')

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i console-log

Weekly Downloads

16

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nopersonsmodules