A simple ascii file tree generator. Designed to be used in project root. By default it will print to stdout, and copy to clipboard. By default it will not recurse into node_modules, .git, or .vscode folders.
bash
project-tree [flags] [options]
| Flag | Description | | --- | --- | | --nodemodules | Include nodemodules | | --git | Include .git | | --vscode | Include .vscode | | -r, --root | Include parent directory in tree, and indent all other files | | -d, --dirs | Prioritize directories over files |
| Option | Arg | Description | | --- | --- | --- | | -o, --output | path |Output file | | -i, --ignore | path | A file/folder to ignore, can be repeated | | -s, --stop | path | A file/folder to not recurse into, can be repeated |
bash
project-tree -i Cargo.lock -s target -r
bash
project-tree
├─ .gitignore
├─ Cargo.toml
├─ README.md
├─ src/
│ └─ main.rs
└─ target/