Skip to main content

Usage examples

Here are some examples of using zint in real life : The corresponding components are available on the Downloads page on Zint's website.

Analyze your hard disk usage by using a flamegraph

the command du will check the disk usage of the current folder and its subfolders recursively. this typically generates a lot of data from which it is often difficult to get the big picture of what takes space on the disk. We can solve this using Zint and a Flame Graph component :

du 2>/dev/null | zint flamegraph --du

It will show something similar to this :

Disk Usage represented as a Flame Graph

warning

Once again the 2>/dev/null is important, because du generally outputs things on the terminal (Operation not permitted errors) and that could conflict the data that is transmitted to Zint.

Render a markdown file

Have a quick look at a Markdown file without leaving the terminal thanks to the markdown component:

zint markdown < README.md    # or cat README.md | zint markdown

README.md with markdown rendered