Socket
Socket
Sign inDemoInstall

table-printer-cli

Package Overview
Dependencies
3
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    table-printer-cli

console table printer cli. Print table on bash terminal


Version published
Weekly downloads
118
increased by2850%
Maintainers
1
Install size
156 kB
Created
Weekly downloads
 

Changelog

Source

1.1.6 (2020-12-06)

Bug Fixes

  • deps: update dependency console-table-printer to ^2.7.3 (a16ef72)

Readme

Source

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

Keywords

FAQs

Last updated on 06 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc