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