0.1.2 • Published 12 years ago

cdir v0.1.2

Weekly downloads
45
License
-
Repository
github
Last release
12 years ago

Synopsis

An interactive representation of an object for the CLI similar to that of console.dir() in webkit.

Motivation

Why? Sometimes you have a lot of data that gets dumped to the screen. It's hard to keep track of it visually. A lot of the time you are just looking for one item in a sea of data. Progressive disclosure helps.

Usage

First, require the module. Then use console.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.

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.

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.9-1

12 years ago

0.0.9

12 years ago

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago