An interactive console.dir() for the terminal.
npm install cdirconsole.dir(somecode) in your program and then use tab or shift+tab to cycle through the object's members. You can hit space, return or enter to expand a member. See the example below.Hit ctrl+c or q to quit!
There is a CLI version too if you want to use it. npm install cdir -g.
``js
console.dir = require('../dir');
var stuff = {
"name" : "dir",
"description" : "An interactive console.dir() for the terminal.",
"tags" : [
"console",
"debug",
"debugging",
"json",
"interacive",
"prompt"
]
"foo": function() {
return "node tests/test.js"
}
};
console.dir(stuff);
``
The output looks something like this.
