https://github.com/ayonious/table-printer-cli
🦾 CLI to print table in terminal
https://github.com/ayonious/table-printer-cli
cli console console-application npmjs opensource opensource-library table tableview typescript
Last synced: about 1 year ago
JSON representation
🦾 CLI to print table in terminal
- Host: GitHub
- URL: https://github.com/ayonious/table-printer-cli
- Owner: ayonious
- License: mit
- Created: 2020-04-22T20:53:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T00:05:28.000Z (about 1 year ago)
- Last Synced: 2025-05-06T01:20:20.374Z (about 1 year ago)
- Topics: cli, console, console-application, npmjs, opensource, opensource-library, table, tableview, typescript
- Language: TypeScript
- Homepage:
- Size: 955 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
table-printer-cli
📟🍭Printing Pretty Tables on your terminal
## 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](https://www.npmjs.com/package/console-table-printer)
## Installation
### Using npm
```bash
npm install --global table-printer-cli
```
### Using yarn
```bash
yarn global add table-printer-cli
```
## Basic Example
Try this on your terminal.
```bash
ctp -i '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]'
```
Output:

You can also pipe the input from stdin
```bash
echo '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]' | ctp -s
```
## Detailed usage
```text
Usage: ctp [options]
Options:
-i, --input input string
-s, --stdin read input from stdin
-h, --help display help for command
```
## License
[MIT](https://github.com/ayonious/table-printer-cli/blob/master/LICENSE)