modulexcite / console.js

Crossbrowser Firebug console API. Improves Opera Dragonfly and IE developer tools.

Home Page:http://nv.github.com/console.js/tests/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opera error console, IE6 alert, Firebug, Webkit Web Inspector

Different browsers, same API.

Both Firebug and Web Inspector have console API support. Opera and IE 8–9 kind of have it. IE≤7 doesn't have it at all.

Console.js — crossbrowser Firebug console API

>>> console.log({x:3, y:5})
{x: 3, y: 5}
>>> console.dir({x:3, y:5})
{
  x: 3, 
  y: 5
}

>>> console.log(document.body)
<BODY class="timeline" id="home">
>>> console.dir(document.body)
HTMLBodyElement {
  aLink: "", 
  attributes: NamedNodeMap {
    0: Attr {?}
    ...
  }
}

Console.js benefitsComparison of consoles

About

Crossbrowser Firebug console API. Improves Opera Dragonfly and IE developer tools.

http://nv.github.com/console.js/tests/

License:MIT License


Languages

Language:JavaScript 74.2%Language:HTML 25.8%