Skip to main content

ctp - A Homebrew CLI Table Printer

🍻 This is a Homebrew tap for table-printer-cli, a Node.js CLI tool for printing beautiful tables in your terminal.

🚀 Quick Install

brew install console-table-printer/homebrew-console-table/ctp

📋 Usage

After installation, you can use the ctp command in your terminal:

Show help

ctp --help

Simple Table

ctp -i '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]'

Use custom column styles

ctp -i '[{"id":1,"status":"active"},{"id":2,"status":"inactive"}]' --tableOptions '{"columns": [{"name": "status", "color": "green"}]}'

Change table title

ctp -i '[{"id":1,"name":"John"}]' --tableOptions '{"title": "Users List"}'

🗑️ Uninstallation

To remove the package:

brew uninstall ctp

Notes

  • Input must be valid JSON
  • Table options must be valid JSON format
  • Colors and styles are compatible with the console-table-printer library