Generate shareable directory trees in one command
Run this command in your terminal:
curl -s https://structure.sh/install | bash
Then use it in any directory:
structure
One command to generate a tree of any directory
Generates an ASCII tree of your file structure
Generate links to share with others instantly
The sharing feature lets you generate a shareable URL for your project structure with a single command. Perfect for documentation, READMEs, or sharing with colleagues!
Structure scans your directories and generates an ASCII tree representation of your file structure. Perfect for documentation, READMEs, or just getting a better view of your project.
my-project/ ├── src/ │ ├── components/ │ │ ├── Header.js │ │ ├── Footer.js │ │ └── Sidebar.js │ ├── utils/ │ │ └── helpers.js │ └── App.js ├── public/ │ ├── index.html │ └── favicon.ico ├── tests/ │ └── App.test.js ├── package.json ├── README.md └── .gitignore
Structure comes with several useful options:
structure # Map current directory
structure /path/to/dir # Map specific directory
structure -o output.txt # Specify output file
structure -i node_modules,dist # Ignore additional directories
structure -s # Generate shareable URL