@vladstudio/pi-file-tree
v1.0.0
Published
Pi extension: a file_tree tool that returns an ASCII tree structure of a path, with smart auto-depth that fills available context.
Maintainers
Readme
@vladstudio/pi-file-tree
Pi extension adding a file_tree tool: ASCII tree of a path.
- Omit
depth→ expands to the deepest level fitting 400 lines. - Folders-only by default;
includeFilesadds files. includeHiddenadds dotfiles (.gitignore,.env).├──/└──connectors.- Excludes
node_modules,dist. - Text files show size and line count.
Parameters
| param | type | default | description |
|---|---|---|---|
| path | string | — | Path (relative or absolute) |
| includeFiles | boolean | false | Include files (default: folders only) |
| includeHidden | boolean | false | Include dotfiles/dotdirs |
| depth | number | auto | Max depth; unset → auto-expand to fit |
Install
pi install npm:@vladstudio/pi-file-treeExample
5 folder(s), 17 file(s)
extensions
├─ biome
│ └─ index.ts · 3Kb · 124 lines
├─ skim
│ ├─ index.ts · 19Kb · 670 lines
│ └─ package.json · 160b · 10 lines
└─ web_fetch
└─ index.ts · 3Kb · 90 linesLicense
MIT
