{"id":24582762,"url":"https://github.com/devxprite/file-tree-cli","last_synced_at":"2025-10-27T09:06:11.946Z","repository":{"id":269243966,"uuid":"906837835","full_name":"devxprite/file-tree-cli","owner":"devxprite","description":"A modern CLI tool for visualizing directory structures with advanced filtering and display options.","archived":false,"fork":false,"pushed_at":"2024-12-22T08:47:02.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T10:02:55.655Z","etag":null,"topics":["cli","clitools","directory","file-tree","filesystem","filetree","nodejs","npm-package","typescript","visualization"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/file-tree-cli","language":"TypeScript","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/devxprite.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-22T03:53:10.000Z","updated_at":"2025-01-14T18:05:24.000Z","dependencies_parsed_at":"2024-12-22T05:13:10.460Z","dependency_job_id":"8c1122ea-4275-4f4d-89f6-c46d1edc71d8","html_url":"https://github.com/devxprite/file-tree-cli","commit_stats":null,"previous_names":["devxprite/file-tree-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devxprite/file-tree-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Ffile-tree-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Ffile-tree-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Ffile-tree-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Ffile-tree-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxprite","download_url":"https://codeload.github.com/devxprite/file-tree-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Ffile-tree-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267482004,"owners_count":24094508,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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","clitools","directory","file-tree","filesystem","filetree","nodejs","npm-package","typescript","visualization"],"created_at":"2025-01-24T03:57:33.527Z","updated_at":"2025-10-27T09:06:06.913Z","avatar_url":"https://github.com/devxprite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003eFile Tree CLI\u003c/h2\u003e\n  \u003cp\u003eA modern CLI tool for visualizing directory structures with advanced filtering and display options.\u003c/p\u003e\n\u003c/div\u003e\n\n## Features\n\n- 🎨 Colorized output\n- 📏 Configurable directory traversal depth\n- 🔍 Multiple filtering options:\n  - File extensions\n  - Regular expression patterns\n  - Hidden files\n  - Directories/files only\n- 📊 File size display\n- 📅 Last modified dates\n- 🔄 Multiple sorting options\n- 💾 Save output to file\n- ⚡ Performance optimized\n\n## Usage\n\nYou can run the CLI tool directly using npx without installation:\n\n```bash\nnpx file-tree-cli \n```\n\nIf you prefer to install it globally (optional):\n\n```bash\nnpm install -g file-tree-cli\nfile-tree [options] [directory]\n```\n\nIf no directory is specified, the current directory will be used.\n\n### Basic Examples\n\n```bash\n# Display tree of current directory\nnpx file-tree-cli\n\n# Display tree of specific directory\nnpx file-tree-cli /path/to/directory\n\n# Show tree with file sizes\nnpx file-tree-cli -s\n\n# Show only JavaScript and TypeScript files\nnpx file-tree-cli --ext js,ts\n\n# Show files modified dates and sizes\nnpx file-tree-cli -s -m\n```\n\n### Advanced Examples\n\n```bash\n# Show only directories, sorted by name\nnpx file-tree-cli --dirs-only --sort name\n\n# Show only JavaScript files and their sizes\nnpx file-tree-cli --ext js -s\n\n# Show tree with custom depth and excluded directories\nnpx file-tree-cli -d 3 -e \"dist,coverage\"\n\n# Show all files (including hidden) sorted by size\nnpx file-tree-cli -a --sort size\n\n# Export tree to a file\nnpx file-tree-cli -o output.txt\n```\n\n## Options\n\n| Option                     | Description                                    | Default |\n| -------------------------- | ---------------------------------------------- | ------- |\n| `-d, --max-depth \u003cnumber\u003e` | Maximum depth to traverse                      | ∞       |\n| `-a, --all`                | Show hidden files                              | false   |\n| `-e, --exclude \u003citems\u003e`    | Comma-separated list of directories to exclude | []      |\n| `-s, --show-size`          | Show file sizes                                | false   |\n| `-m, --modified`           | Show last modified date                        | false   |\n| `-f, --pattern \u003cpattern\u003e`  | Filter items by regex pattern                  | null    |\n| `--ext \u003cextensions\u003e`       | Filter by file extensions (comma-separated)    | []      |\n| `--sort \u003ctype\u003e`            | Sort items by: name, size, or date             | name    |\n| `-r, --reverse`            | Reverse sort order                             | false   |\n| `--dirs-only`              | Show only directories                          | false   |\n| `--files-only`             | Show only files                                | false   |\n| `-o, --output \u003cfile\u003e`      | Save output to file                            | null    |\n\n## Output Format\n\nThe tool provides a structured view of your directory:\n\n```\nDirectory\n├── src\n│   ├── index.ts [2.5KB] 2024-01-15\n│   └── utils.ts [1.2KB] 2024-01-14\n└── package.json [0.8KB] 2024-01-10\n```\n\n## Development\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/devxprite/file-tree-cli.git\n```\n\n2. Install dependencies:\n```bash\ncd file-tree-cli\nnpm install\n```\n\n3. Build the project:\n```bash\nnpm run build\n```\n\n4. Test locally:\n```bash\n# Run directly from the project directory\nnpm start\n\n# Or use npm link for global testing\nnpm link\ntree [options] [directory]\n```\n\n## Contributing\n\nContributions are welcome! Here's how you can contribute:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxprite%2Ffile-tree-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxprite%2Ffile-tree-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxprite%2Ffile-tree-cli/lists"}