npm install -g textree
In command line, cd
into the directory for which you want to generate the tree structure, and run
textree
and you will get the below output (example):
π src |--π js | `--π textree.js |--π scss | `--π main.scss |--π cli.js `--π main.js
By default, it will process the current directory. You can also pass a different folder.
textree D:/workspace/textree
π textree |--π .git |--π node_modules |--π resources | `--π js | | `--π bundle.js |--π src | |--π js | | `--π textree.js | |--π scss | | `--π main.scss | |--π cli.js | `--π main.js |--π .gitignore |--π index.html |--π LICENSE |--π npm-debug.log |--π package.json |--π README.md |--π textree.iml `--π webpack.config.js
It will not process the following folders, as they tend to be deeper than the Mariana Trench.
- .git
- node_modules
- .sass-cache