outtree
v1.0.4
Published
CLI tool to generate project tree structure in multiple formats (txt, md, html, json)
Downloads
27
Maintainers
Readme
outtree
🗂️ Generate a project structure tree in multiple formats (txt, markdown, html, json), with interactive prompts for configuration.
📦 Installation
npm install -g .🚀 Usage
outtree [path]Examples:
outtree # Prompts for format and ignore list, scans current directory
outtree ./src # Prompts for format and ignore list, scans ./srcYou'll be interactively asked:
- Output format – choose from
html,json,markdown,text, orall - Ignore list – comma-separated list of folders/files to skip (
node_modules,.git, etc.)
📂 Output
All output files will be saved to a folder called outtree/:
tree.txt– ASCII treetree.md– Markdown treetree.html– HTML listtree.json– JSON format
🔧 Configuration
3The maximum depth for directory scanning is configurable. The default maximum depth is When running the command, you'll be prompted to enter the maximum depth, or typeallfor unlimited depth.- Default ignored directories are:
node_modules,.git,dist,build. You can override them at runtime via prompt.
Feel free to fork and enhance! PRs welcome 🤝
