Convert markdown lists into ASCII trees.
For example, if you run:
cat <<EOF | mdtree
- a
- b
- ba
EOFIt will output:
.
├── a
└── b
└── ba
Which you can then use to express a file tree, or anything else, really.
You can also customize the tree style with --style, and change the root
element with --root, for example:
cat <<EOF | mdtree --root ⁜ --style rounded
- foo
- bar
- hi
EOFResulting in:
⁜
├── foo
╰── bar
╰── hi
- macOS:
brew install caarlos0/tap/mdtree - nix: use this NUR
- others: download from the latest release
MIT