1.0.0 • Published 5 years ago
tsv-table v1.0.0
tsv-table
A simple command line node app that will take a tsv that is copied to your clipboard (or even from a tsv file) and prints out an ascii table like:
.-------------------------------------------------.
| Value | Slug | title |
|--------|--------------|-------------------------|
| 1 | first | The First Post |
| 3 | happy | Happy |
| 5 | Lorem_Ipsum | Lorem Ipsum |
| 1234 | delete-me | DELETE ME |
| 6 | BLOG | New Post Test |
| 123 | second | This is the second post |
| 12.317 | AnotherTest | Hello |
'-------------------------------------------------'Installing:
$ npm i -g tsv-tableNow go to a spread sheet, select and copy a section, then run:
$ tsv-table...and it will print out what you selected in the terminal as an ascii-table.
There are two flags:
--no-headeror-nto not make the first row of data the header.--file [path to file]or-f [path to file]for a path to a.tsvfile to print out rather than what is in the clipboard.
1.0.0
5 years ago