tree-path-cli
v1.0.0
Published
Tiny CLI to print a folder tree (excluding node_modules, .git, .next, dist).
Readme
tree-path-cli
A tiny CLI tool to print a folder tree structure, excluding common directories like node_modules, .git, .next, and dist.
Installation
Install globally via npm:
npm install -g tree-path-cliUsage
Run the command in your terminal:
tree-path [directory] [options]Or use the alias:
treepath [directory] [options]Examples
Print the tree of the current directory:
tree-pathPrint the tree of a specific directory:
tree-path /path/to/directoryOptions
-e, --exclude <list>: Comma-separated list of additional directories to exclude (e.g.,-e .vscode,.cache).
Features
- Excludes common directories by default:
node_modules,.git,.next,dist. - Supports custom exclusions via the
--excludeflag. - Prints a clean, indented tree structure.
- Works recursively on directories.
License
MIT
Repository
Issues
Report bugs or request features here.
