@buzuli/tabulate

1.3.0 • Public • Published

tabulate

Reads a data file then outputs a sample table to the terminal.

Supported formats

  • .csv
  • .json
  • .ndjson | .nljson | .jsonl

Installation

$ npm install @buzuli/tabulate

Usage

$ tabulate my-file.csv

Output

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 │
└──────┴──────────────┘

Package Sidebar

Install

npm i @buzuli/tabulate

Weekly Downloads

0

Version

1.3.0

License

ISC

Unpacked Size

9.05 kB

Total Files

4

Last publish

Collaborators

  • buzuli