1.2.8 β€’ Published 2 months ago

treei v1.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

treei

npm

treei is a node command line tool to generate directory structure tree.

Installation

npm i treei -g

Usage

$ treei -h
Usage: treei [options]

Generate a directory structure tree

Options:
  -V, --version          output the version number
  -i, --ignore <ig>      ignore specific directory name, separated by comma or '|'  
  -l, --layer <layer>    specify the layer of output
  -d, --directory <dir>  specify the directory to generate structure tree
  -f, --only-folder      output folder only
  --icon                 output emoji icon, prefixing filename or directory
  -o, --output <output>  export content into a file, appending mode by default      
  -h, --help             display help for command

Examples

Ignore .git and node_modules directory.

$ treei -i '.git|node_modules' # or treei -i '.git,node_modules'
treei
β”œβ”€β”€πŸ“„.editorconfig
β”œβ”€β”€πŸ“„.eslintrc.js
β”œβ”€β”€πŸ“„.gitignore
β”œβ”€β”€πŸ“„.prettierrc.js
β”œβ”€β”€πŸ“„.release-it.json
β”œβ”€β”€πŸ“„CHANGELOG.md
β”œβ”€β”€πŸ“„LICENSE
β”œβ”€β”€πŸ“„package-lock.json
β”œβ”€β”€πŸ“„package.json
β”œβ”€β”€πŸ“„README.md
β””β”€β”€πŸ“src
    β”œβ”€β”€πŸ“„config.js
    β”œβ”€β”€πŸ“„generate.js
    β”œβ”€β”€πŸ“„index.js
    β”œβ”€β”€πŸ“„toTree.js
    β””β”€β”€πŸ“„utils.js

Show emoji icon, prefixing filename or directory.

$ treei -i '.git,node_modules' --icon
treei
β”œβ”€β”€πŸ“„.editorconfig
β”œβ”€β”€πŸ“„.eslintrc.js
β”œβ”€β”€πŸ“„.gitignore
β”œβ”€β”€πŸ“„.prettierrc.js
β”œβ”€β”€πŸ“„.release-it.json
β”œβ”€β”€πŸ“„CHANGELOG.md
β”œβ”€β”€πŸ“„LICENSE
β”œβ”€β”€πŸ“„package-lock.json
β”œβ”€β”€πŸ“„package.json
β”œβ”€β”€πŸ“„README.md
β””β”€β”€πŸ“src
    β”œβ”€β”€πŸ“„config.js
    β”œβ”€β”€πŸ“„generate.js
    β”œβ”€β”€πŸ“„index.js
    β”œβ”€β”€πŸ“„toTree.js
    β””β”€β”€πŸ“„utils.js

Export output into result.md, and append mode by default.

$ treei -i '.git,node_modules' -o result.md
treei
β”œβ”€β”€πŸ“„.editorconfig
β”œβ”€β”€πŸ“„.eslintrc.js
β”œβ”€β”€πŸ“„.gitignore
β”œβ”€β”€πŸ“„.prettierrc.js
β”œβ”€β”€πŸ“„.release-it.json
β”œβ”€β”€πŸ“„CHANGELOG.md
β”œβ”€β”€πŸ“„LICENSE
β”œβ”€β”€πŸ“„package-lock.json
β”œβ”€β”€πŸ“„package.json
β”œβ”€β”€πŸ“„README.md
β””β”€β”€πŸ“src
    β”œβ”€β”€πŸ“„config.js
    β”œβ”€β”€πŸ“„generate.js
    β”œβ”€β”€πŸ“„index.js
    β”œβ”€β”€πŸ“„toTree.js
    β””β”€β”€πŸ“„utils.js

License

MIT

1.2.8

2 months ago

1.2.7

2 months ago

1.2.6

2 months ago

1.2.5

2 months ago

1.2.4

3 months ago

1.2.3

3 months ago

1.2.2

3 months ago

1.2.1

3 months ago

1.2.0

3 months ago

1.1.4

3 months ago

1.1.1

3 months ago

1.1.3

3 months ago

1.1.2

3 months ago

1.1.0

3 months ago

1.0.0

3 months ago