mac下使用tree命令生成目錄樹結構html
這裏是經過Homebrew進行安裝的,Homebrew
是一款macOS
平臺下的軟件包管理工具,擁有安裝、卸載、更新、查看、搜索等不少實用的功能;下載地址:https://brew.sh/index_zh-cn.htmlvue
mac安裝tree brew install tree
node
在終端直接執行tree
命令,展現當前文件夾下全部的目錄樹結構(包含文件和文件夾以及子文件夾)web
tree --help
tree -L 2
tree -d "src"
tree -I "node_modules"
tree -I "node_modules|tests"
tree -I "node_modules|test*|LICENSE|README.en.md" -L 2 > README.md
$ tree -I "node_modules|test*|LICENSE|README.en.md" -L 2 . ├── README.md ├── babel.config.js ├── jest.config.js ├── package.json ├── packages ├── public │ ├── favicon.ico │ └── index.html ├── src │ ├── index.ts │ └── theme ├── tsconfig.json ├── vue.config.js ├── website │ ├── App.vue │ ├── assets │ ├── components │ ├── docs │ ├── main.ts │ ├── router │ ├── shims-tsx.d.ts │ ├── shims-vue.d.ts │ └── views └── yarn.lock