1.2.8 β’ Published 2 months ago
treei v1.2.8
treei
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