table-printer-cli
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

table-printer-cli

📟🍭Printing Pretty Tables on your terminal

Build Status codecov npm version install size

code style: prettier semantic-release

Synopsis

Printing Simple Table on your bash terminal. Its useful when you want to present some tables on console. There is a library that you can use similar way in nodejs/typescript Projects. console-table-printer

Installation

npm install table-printer-cli -g

Basic Example

Try this on your terminal.

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

Output:

Screenshot

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

License

MIT

Dependents (0)

Package Sidebar

Install

npm i table-printer-cli

Weekly Downloads

21

Version

1.1.6

License

MIT

Unpacked Size

9.13 kB

Total Files

10

Last publish

Collaborators

  • ayonknan