Attributes
Includes Deno configuration
Repository
Current version released
9 months ago
Versions
dtree-deno
A simple CLI for generate the dir tree with deno.
- β Windows
- β MacOS
Install
- Using the following commands
deno install --allow-all --unstable -n dtree https://deno.land/x/deno_tree/src/index.ts
- Done, try the following command in terminal
dtree
Install from git
This methos is for non-denoLand install. If you are using the top method to install, you can skip this sections.
- Git clone the project first
git clone https://github.com/r48n34/dtree-deno.git
- Install with deno task
deno task install
- Run with dtree
dtree
Result
Using this repo for samples, the cli will output this result.
dtree
PS D:\github-repo\dtree > dtree
π .
βββ deno.json
βββ deno.lock
βββ README.md
βββ¬ π src
βββ dir-tree-creator.ts
βββ index.ts
Success to copy to your clipboard.
Config (Optional)
name | params | Type | Description |
---|---|---|---|
Shows Hidden folder | --hidden , -h |
boolean | Will include the β.β folder output this result. |
No auto copy result | --noCopy , -n |
boolean | Will not auto copy the result. |
Set max depth tree | --maxDepth , -m |
number | Set the max depth generate to the tree |
Set No Icon display | --noIcon |
boolean | Set the tree display without the icon π |
Set Icon display | --icon |
string | Set the tree display icon (Default: π ) |
More demo
--hidden
The --hidden
or -h
flag will include the β.β folder output this result.
dtree --hidden
PS D:\github-repo\dtree > dtree --hidden
π .
βββ¬ π .git
β βββ ...
βββ .gitignore
βββ¬ π .vscode
β βββ ...
βββ deno.json
βββ deno.lock
βββ README.md
βββ¬ π src
βββ dir-tree-creator.ts
βββ index.ts
Success to copy to your clipboard.
--noCopy
The --noCopy
or -n
flag will not auto copy the result.
dtree --noCopy
PS D:\github-repo\dtree > dtree --noCopy
π .
βββ deno.json
βββ deno.lock
βββ README.md
βββ¬ π src
βββ dir-tree-creator.ts
βββ index.ts
--maxDepth
The --maxDepth
or -m
flag can set the max depth generate to the tree.
Default: Infinity
dtree --maxDepth <number>
# Set a max depth to 1
PS D:\github-repo\dtree> dtree -m 1
π .
βββ deno.json
βββ deno.lock
βββ README.md
βββ π src
Success to copy to your clipboard.
--noIcon
The --noIcon
flag can the tree display without the icon π
.
dtree --noIcon
PS D:\github-repo\dtree> dtree --noIcon
.
βββ deno.json
βββ deno.lock
βββ README.md
βββ¬ src
βββ archy.ts
βββ dir-tree-creator.ts
βββ help.ts
βββ index.ts
βββ¬ interface
βββ interface.ts
Success to copy to your clipboard.
--icon
The --icon
flag can the tree display icon to your icons.
Default: π
dtree --icon <string>
PS D:\github-repo\dtree> dtree --icon π¦
π¦ .
βββ deno.json
βββ deno.lock
βββ README.md
βββ¬ π¦ src
βββ archy.ts
βββ dir-tree-creator.ts
βββ help.ts
βββ index.ts
βββ¬ π¦ interface
βββ interface.ts
Success to copy to your clipboard.
Notices
- The script will default to ignore all
__pycache__
andnode_modules
related files. Unless you are using the command inside either one of the folder.
Uninstall
deno uninstall dtree