CSV-Table
Install
$ npm install -g csv-table
CLI
$ csv-table [options] <file ...>
Options
-h, --help output usage information
-V, --version output the version number
-d, --delimiter <value> Sets the delimiter, defaults to ';'
-c, --columns Use CSV columns headers
-t, --trim trim values
-l, --ltrim left trim values
-r, --rtrim right trim values
-s, --skip skip empty lines
-q, --quote <value> Quote character, defaults to '"'
-m, --comment <value> Comment character, default is none
-e, --escape <value> Escape character, default is '"'
-r, --rowDelimiter <value> Row delimiter character, default is '\n'
API
var csvTable = ; ; // Example:;
If no callback is given, it prints the table to the console/stdout.
Options:
With default values:
delimiter: ';' columns: false trim: false ltrim: false rtrim: false skip_empty_values: false quote: '"' comment: '' escape: '"' rowDelimiter: '\n'
Contributing:
Check out the contributing file