tv42 / sparkbar

Draw a sparkline in a terminal with UTF-8 block characters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sparkbar -- Draw a sparkline in a terminal with UTF-8 block characters

This is a simple command line wrapper for github.com/joliv/spark.

$ sparkbar 1 2 3 4 5 6 7 8
▁▂▃▄▅▆▇█

$ sparkbar .270 .272 .293 .310 .274 .239 .237 .238 .111
▇▇██▇▆▆▆▁

# relative memory sizes of 20 largest processes
$ ps -eo rss --sort rss|tail -20|sparkbar
▁▁▁▁▁▁▁▁▁▁▁▁▁▂▂▂▂▆██

About

Draw a sparkline in a terminal with UTF-8 block characters

License:MIT License


Languages

Language:Go 61.5%Language:Perl 38.5%