@master-chief/pretty-table
v1.2.3
Published
Format data to a console friendly table.
Downloads
822
Readme
pretty-table
Format data to a console friendly table.
Contents
Features
- [x] Extremely fast.
- [x] Prints your data to pretty tables.
Install
From NPM:
$ npm i @master-chief/pretty-table
Example
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.
name animal age
cosmo cat 12
mabel dog 18
Contributing
Feel free to contribute and PR to your 💖's content.