{"id":13716138,"url":"https://github.com/heapwolf/cdir","last_synced_at":"2025-04-13T08:21:05.492Z","repository":{"id":3061383,"uuid":"4083663","full_name":"heapwolf/cdir","owner":"heapwolf","description":"An interactive console.dir() for node.js similar to console.dir() in webkit.","archived":false,"fork":false,"pushed_at":"2016-04-01T23:38:04.000Z","size":187,"stargazers_count":269,"open_issues_count":7,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-23T17:01:49.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-20T06:19:27.000Z","updated_at":"2024-08-30T04:11:41.000Z","dependencies_parsed_at":"2022-09-04T02:02:09.458Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/cdir","commit_stats":null,"previous_names":["hij1nx/cdir","0x00a/cdir"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/cdir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681598,"owners_count":21144715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T00:01:07.426Z","updated_at":"2025-04-13T08:21:05.470Z","avatar_url":"https://github.com/heapwolf.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Synopsis\nAn interactive representation of an object for the CLI similar to that of console.dir() in webkit.\n\n# Motivation\nReading big object dumps is a waste of time. Progressive disclosure helps.\n\n# Features\n - Searchable/Repeat search\n - Handles cyclical references\n - Expand and collapse nodes\n\n# Usage\n\n## Install\nDo `npm install cdir -g` and then require the module in your program like this `console.dir = require('cdir')`.\n\n## Navigate\nUse `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.\n\n## Search\nSearch 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) /`.\n\n## Quit\nHit `ctrl+c` or `q` to quit!\n\n## Simple Example\nThere is a CLI version too if you want to use it. `npm install cdir -g`.\n\n```js\n\nconsole.dir = require('cdir');\n\nvar stuff = { \n  \"name\" : \"cdir\", \n  \"description\" : \"An interactive console.dir() for the terminal.\",\n  \"tags\" : [\n    \"console\",\n    \"debug\",\n    \"debugging\",\n    \"json\",\n    \"interacive\",\n    \"prompt\"\n  ],\n  \"foo\": function() { \n    return \"node tests/test.js\"\n  }\n};\n\nconsole.dir(stuff);\n\n```\n\nThe output looks something like this.\n\n\u003cimg src=\"https://github.com/hij1nx/cdir/raw/master/screenshot.png\"/\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fcdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fcdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fcdir/lists"}