Quick Start
Synopsis
Printing Simple Table on your bash terminal. Its useful when you want to present some tables on console.
Installation
- npm
- Yarn
npm install --global table-printer-cli
yarn global add table-printer-cli
Basic Example
Try this on your terminal.
ctp -i '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]'
Output:
You can also pipe the input from stdin
echo '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]' | ctp -s
Detailed usage
Usage: ctp [options]
Options:
-i, --input <value> input string
-s, --stdin read input from stdin
-h, --help display help for command