vnykmshr / qtable

Generate Tabular output for HTML View or Console

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QTable

This utility extends cli-table , allowing you to render

  • unicode-aided tables on the command line from your node.js scripts.
  • html tables when those scripts are piped to a program like sendmail

How to use

If you intend to send the output to sendmail, make sure you pass mail options

var Table = new QTable({ mail: { from: 'test@example.com', to: 'recipient@example.com', subject: 'Daily performance summary' },...});

Then run the program as usual, piping the output to sendmail

e.g.

 $ node revs.js | sendmail -f 'test@example.com' 'recipient@example.com' 

Examples

sample html output

About

Generate Tabular output for HTML View or Console


Languages

Language:JavaScript 56.8%Language:HTML 43.2%