https://github.com/117/pretty-table
Format data to a console-friendly table.
https://github.com/117/pretty-table
console format node printer read table write
Last synced: 4 months ago
JSON representation
Format data to a console-friendly table.
- Host: GitHub
- URL: https://github.com/117/pretty-table
- Owner: 117
- License: isc
- Created: 2020-12-23T03:52:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T15:42:28.000Z (over 3 years ago)
- Last Synced: 2025-01-31T13:14:26.804Z (5 months ago)
- Topics: console, format, node, printer, read, table, write
- Language: TypeScript
- Homepage:
- Size: 349 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pretty-table



Format data to a console friendly table.
## Contents
- [Features](#features)
- [Install](#install)
- [Example](#example)
- [Contributing](#contributing)## Features
- [x] Extremely fast.
- [x] Prints your data to pretty tables.## Install
From NPM:
```terminal
$ npm i @master-chief/pretty-table
```## Example
```typescript
import pretty from '@master-chief/pretty-table'let data = [
{ name: 'cosmo', animal: 'cat', age: 12 },
{ name: 'mabel', animal: 'dog', age: 18 },
]console.log(pretty(data))
```The above code will output a formatted (and pretty 😍) table.
```terminal
name animal age
cosmo cat 12
mabel dog 18
```## Contributing
Feel free to contribute and PR to your 💖's content.