Log the directory constructor tree like use tree dir
in linux
npm install log-dir-tree
const logDirTree = require('log-dir-tree')
logDirTree.log('./')
const logDirTree = require('log-dir-tree')
logDirTree.parse('./')
Run command code, you will get as follows in terminal
./
├── .babelrc
├── .git
│ ├── COMMIT_EDITMSG
│ ├── FETCH_HEAD
│ ├── HEAD
│ ├── config
│ ├── description
│ ├── hooks
│ │ ├── applypatch-msg.sample
│ │ ├── commit-msg.sample
│ │ ├── fsmonitor-watchman.sample
│ │ ├── post-update.sample
│ │ ├── pre-applypatch.sample
│ │ ├── pre-commit.sample
│ │ ├── pre-push.sample
│ │ ├── pre-rebase.sample
│ │ ├── pre-receive.sample
│ │ ├── prepare-commit-msg.sample
│ │ └── update.sample
...