Skip to content

Latest commit

Β 

History

History
38 lines (25 loc) Β· 960 Bytes

File metadata and controls

38 lines (25 loc) Β· 960 Bytes

ctp - A Homebrew CLI Table Printer

Homebrew

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:

# Uninstall the package
brew uninstall ctp