$ sudo apt-get install nodejs
$ npm install tty-table -g
- Pipe some inline data to tty-table:
echo '[["name","price"],["aapl",92.50],["ibm",120.15]]' | tty-table --format=json
- Pipe a csv file to tty-table via the command line:
$ cat examples/data/data.csv | tty-table
- Pipe a stream JSON to tty-table via the command line:
$ node examples/data/streamer.js | tty-table --format==JSON
*CSV is the default input format.