Exclude node modules in tree output

List of latest tools available in the market

Exclude node modules in tree output

Do you wish to display only the folders excluding the node_modules or bower_components folder ?

tree -I "node_modules|bower_components"

Now the output should look clean excluding the node_modules or bower_components folder.

sam@SamsMacBookPro ~/w/t/t/blog-app (main)> tree -I "node_modules|bower_components"
.
├── README.md
├── app
│   ├── favicon.ico
│   ├── globals.css
│   ├── layout.js
│   └── page.js
├── jsconfig.json
├── lib
│   └── db.js
├── next.config.js
├── package-lock.json
├── package.json
├── pages
│   ├── api
│   │   └── posts.js
│   └── index.js
├── postcss.config.js
├── public
│   ├── next.svg
│   └── vercel.svg
├── styles
│   └── global.css
└── tailwind.config.js

7 directories, 17 files