vraa / textree

Generate textual tree representation of given folder in command line.

Home Page:https://www.npmjs.com/package/textree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build

Build Status

Install

npm install -g textree

Usage

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

Note

It will not process the following folders, as they tend to be deeper than the Mariana Trench.

  • .git
  • node_modules
  • .sass-cache

About

Generate textual tree representation of given folder in command line.

https://www.npmjs.com/package/textree

License:MIT License


Languages

Language:JavaScript 100.0%