@buzuli/tabulate
v1.3.0
Published
Format the contents of a data file as an in-terminal text table
Maintainers
Readme
tabulate
Reads a data file then outputs a sample table to the terminal.
Supported formats
.csv.json.ndjson|.nljson|.jsonl
Installation
$ npm install @buzuli/tabulateUsage
$ tabulate my-file.csvOutput
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 │
└──────┴──────────────┘