You ever used Firebug? You know the awesome dir function its console has?
Well, this is like that, but for Node.
That means you get real object inspection that goes up the prototype chain,
not the pansy-ass, weak-sauce "inspection" Node's util.inspect gives you.
And it actually returns an object instead of a string, so you don't have to
tediously and explicitly console.log it in the shell to unescape characters.
And best of all, since it returns a real object, the output is just as nicely
colored and formatted as the native shell.
Btw, it turns out Node already has a console.dir, but, uh... it doesn't seem
any different than console.log! So this monkey-patches it to no longer suck.
With dir in hand, you're ready to kick some console ass. Go forth and enjoy!
Installation
npm install dir
Usage
dir() probably won't be terribly useful from within an app or file (though
feel free to let me know if I'm wrong!), but it's super convenient and useful
from within the shell (AKA interactive-mode).