Socket
Book a DemoInstallSign in
Socket

termplot

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

termplot

plot x,y, and hits to view in your terminal for much win

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

node-termplot

plot x,y, and hits to view in your terminal for much win

right now it only works with numbers. and rounds floats. it should auto scale each axis and a bunch of other cool things but a 3 dimensional plot in your terminal this simple is pretty neat i think.

how

read points from stdin

echo -e "[5,7]\n[7,9]\n[6,8]\n[6,8]" | termplot
   7|8|9|
5 |1|
6 |  2|
7 |    1|

read points from json file

termplot -p points.json
   7|8|9|
5 |1|
6 |  2|
7 |    1|

pick x and y from json properties

new line delimited json from stdin.

echo -e '{"a":5,"b":7}\n{"a":7,"b":9}\n{"a":6,"b":8}\n{"a":6,"b":8}' | termplot -x a -y b
   7|8|9|
5 |1|
6 |  2|
7 |    1|

install

npm install -g termplot

FAQs

Package last updated on 24 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts