1.0.1 • Published 5 years ago

@calvernaz/plt v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

A simple tool to plot values from stdin into your terminal.

This work is pretty much inspired in cli-plot, with slightly differences internally and visually.

Install

npm i @calvernaz/plt

How to use it

for i in {1..50}; do
  echo $RANDOM;
  sleep 1;
done

You can pipe it to generate a chart right there in your terminal. It will push new values from the right every time they arrive on stdin. Note: input values must be separated by a new line.

./random.sh | plt

Screenshot

Arguments

  • plt -w 100: graph width (in terminal rows)
  • plt -h 10: graph height (in terminal rows)