Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
An interactive representation of an object for the CLI similar to that of console.dir() in webkit.
Reading big object dumps is a waste of time. Progressive disclosure helps.
Do npm install cdir -g
and then require the module in your program like this console.dir = require('cdir')
.
Use console.dir(someobject)
somewhere in your program and then hit tab
, shift+tab
or the arrow keys to cycle through the object's members. You can hit space
, return
or enter
to expand a member.
Search by pressing the /
key. This will display a /
prompt. If you have already searched for something it will be displayed before the /
prompt. For instance if you searched for "foobar" it would appear as (foobar) /
.
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" : "cdir",
"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.
FAQs
An interactive console.dir() for the terminal.
We found that cdir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.