{"id":22971330,"url":"https://github.com/r48n34/dtree-deno","last_synced_at":"2026-05-05T07:32:19.759Z","repository":{"id":176403149,"uuid":"656530507","full_name":"r48n34/dtree-deno","owner":"r48n34","description":"📂 A simple CLI for generate the dir tree with deno","archived":false,"fork":false,"pushed_at":"2025-11-05T02:14:52.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-05T04:10:10.291Z","etag":null,"topics":["cli","deno","tree"],"latest_commit_sha":null,"homepage":"https://deno.land/x/deno_tree","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r48n34.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-21T06:18:20.000Z","updated_at":"2025-11-05T02:14:55.000Z","dependencies_parsed_at":"2024-03-08T11:00:20.592Z","dependency_job_id":null,"html_url":"https://github.com/r48n34/dtree-deno","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"02343af4d7855a158c2311a7f7f6f9b7d678aa22"},"previous_names":["r48n34/dtree-deno"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/r48n34/dtree-deno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdtree-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdtree-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdtree-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdtree-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r48n34","download_url":"https://codeload.github.com/r48n34/dtree-deno/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdtree-deno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","deno","tree"],"created_at":"2024-12-14T22:16:54.376Z","updated_at":"2026-05-05T07:32:19.754Z","avatar_url":"https://github.com/r48n34.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📂 dtree-deno\n\n\u003ca href=\"https://deno.land/x/deno_tree\"\u003e \u003cimg src=\"https://img.shields.io/badge/deno.land/x/deno_tree-success?logo=deno\u0026logoColor=black\u0026labelColor=white\u0026color=black\" /\u003e \u003c/a\u003e\n\u003ca href=\"https://github.com/r48n34/dtree-deno\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/r48n34/dtree-deno/test.yml\" /\u003e\u003c/a\u003e\n\nA simple CLI for generate the dir tree with deno.\n\n- ✅ Windows\n- ✅ MacOS\n\n## 🚀 Install \n1. Using the following commands.\n```bash\ndeno install -A --global -f -n dtree jsr:@reemo/dtree-deno\n```\n\n2. Done, try the following command in terminal.\n```bash\ndtree\n```\n\n## 🐙 Install from git\nThis methos is for non-denoLand install. If you are using the top method to install, you can skip this sections. \n\n1. Git clone the project first\n```bash\ngit clone https://github.com/r48n34/dtree-deno.git\n```\n\n2. Install with deno task\n```bash\ndeno task install\n```\n\n3. Run with dtree\n```bash\ndtree\n```\n\n## 💻 CLI Result\nUsing this repo for samples, the cli will output this result.\n\n```bash\ndtree\n```\n\n```md\nPS D:\\github-repo\\dtree \u003e dtree\n📂 .\n├── deno.json\n├── deno.lock\n├── README.md\n└─┬ 📂 src\n  ├── dir-tree-creator.ts\n  └── mod.ts\n\nSuccess to copy to your clipboard.\n```\n\n## 🔧 Config (All are Optional flags)\n\n| Name                      | Params             | Type    | Description                                     | \n| ------------------------- | ------------------ | ------- | ----------------------------------------------- | \n| Shows Hidden folder       | `--hidden`, `-h`   | boolean | Will include the '.' folder output this result. | \n| No auto copy result       | `--noCopy`, `-n`   | boolean | Will not auto copy the result.                  | \n| Set max depth tree        | `--maxDepth`, `-m` | number  | Set the max depth generate to the tree          |   \n| Set No Icon display       | `--noIcon`         | boolean | Set the tree display without the icon `📂`      |       \n| Set Icon display          | `--icon`           | string  | Set the tree display icon (Default: `📂`)       |        \n\n## 🔍 More demo usgae\n\n### `--hidden`\n\nThe `--hidden` or `-h` flag will include the '.' folder output this result.\n\n```bash\ndtree --hidden\n```\n\n```md\nPS D:\\github-repo\\dtree \u003e dtree --hidden\n📂 .\n├─┬ 📂 .git\n│ └── ...\n├── .gitignore\n├─┬ 📂 .vscode\n│ └── ...\n├── deno.json\n├── deno.lock\n├── README.md\n└─┬ 📂 src\n  ├── dir-tree-creator.ts\n  └── mod.ts\n\nSuccess to copy to your clipboard.\n```\n\n---\n\n### `--noCopy`\n\nThe `--noCopy` or `-n` flag will not auto copy the result.\n\n```bash\ndtree --noCopy\n```\n\n```md\nPS D:\\github-repo\\dtree \u003e dtree --noCopy\n📂 .\n├── deno.json\n├── deno.lock\n├── README.md\n└─┬ 📂 src\n  ├── dir-tree-creator.ts\n  └── mod.ts\n```\n\n---\n\n### `--maxDepth`\n\nThe `--maxDepth` or `-m` flag can set the max depth generate to the tree.  \nDefault: `Infinity`\n```bash\ndtree --maxDepth \u003cnumber\u003e\n```\n\n```md\n# Set a max depth to 1\nPS D:\\github-repo\\dtree\u003e dtree -m 1\n📂 .\n├── deno.json\n├── deno.lock\n├── README.md\n└── 📂 src\n\nSuccess to copy to your clipboard.\n```\n\n---\n\n### `--noIcon`\n\nThe `--noIcon` flag can the tree display without the icon `📂`.  \n\n```bash\ndtree --noIcon\n```\n\n```md\nPS D:\\github-repo\\dtree\u003e dtree --noIcon\n.\n├── deno.json\n├── deno.lock\n├── README.md\n└─┬ src\n  ├── archy.ts\n  ├── dir-tree-creator.ts\n  ├── help.ts\n  ├── mod.ts\n  └─┬ interface\n    └── interface.ts\n\nSuccess to copy to your clipboard.\n```\n\n---\n\n### `--icon`\n\nThe `--icon` flag can the tree display icon to your icons.  \nDefault: `📂`\n\n```bash\ndtree --icon \u003cstring\u003e\n```\n\n```md\nPS D:\\github-repo\\dtree\u003e dtree --icon 📦\n📦 .\n├── deno.json\n├── deno.lock\n├── README.md\n└─┬ 📦 src\n  ├── archy.ts\n  ├── dir-tree-creator.ts\n  ├── help.ts\n  ├── mod.ts\n  └─┬ 📦 interface\n    └── interface.ts\n\nSuccess to copy to your clipboard.\n```\n\n## 💻 Non-CLI Usage\nAll ops are as the same with CLI.\n\n```ts\nimport { dirTree } from \"jsr:@reemo/dtree-deno@0\";\n\n(async () =\u003e {\n    const trereStr: string = await dirTree(\n        Deno.cwd(), // Target folder path\n        {\n          label: \".\",\n          showsHiddenFolder: false,\n          maxDepth: 1,\n          noIcon: false,\n          icon: \"📂\",\n        },\n    );\n})()\n```\n\n## 🔍 Notices\n1. The script will default to ignore all `__pycache__` and `node_modules` related files. Unless you are using the command inside either one of the folder.\n\n## ➖ Uninstall \n```bash\ndeno uninstall dtree \n```\n\n## 🔐 License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr48n34%2Fdtree-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr48n34%2Fdtree-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr48n34%2Fdtree-deno/lists"}