Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

caarlos0/mdtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdtree

Convert markdown lists into ASCII trees.

screenshot

For example, if you run:

cat <<EOF | mdtree
- a
- b
  - ba
EOF

It 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
EOF

Resulting in:

⁜
├── foo
╰── bar
    ╰── hi

Install

License

MIT

About

Convert markdown lists into ASCII trees

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors