Format the contents of a data file as an in-terminal text table
npm install @buzuli/tabulateReads a data file then outputs a sample table to the terminal.
* .csv
* .json
* .ndjson | .nljson | .jsonl
``shell`
$ npm install @buzuli/tabulate
`shell`
$ tabulate my-file.csv
Given a CSV file with the contents:
``
"name","phone"
"bob","800.555.1111"
"jess","505.555.2222"
A table will be rendered in the terminal thus:
```
┌──────┬──────────────┐
│ name │ phone │
├──────┼──────────────┤
│ bob │ 800.555.1111 │
├──────┼──────────────┤
│ jess │ 505.555.2222 │
└──────┴──────────────┘