@calvernaz/plt

1.0.1 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i @calvernaz/plt

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.38 MB

Total Files

7

Last publish

Collaborators

  • calvernaz