- Install the Linux package tree using Homebrew:
brew install tree
- Run the tree command on any directory to generate a Markdown friendly structure:
tree your-directory
You can save it to a file by piping the results into a text file:
tree . >> directory-structure.md
packages/button
├── lib