columnizer
A simple tool for printing text in nice columns in the terminal.
Installing
npm install columnizer
How do I use it?
var Columnizer = ; var stooges = name: "Larry" height: "short" fat: false name: "Curly" height: "medium or tall" fat: false name: "Moe" height: "tall" fat: true; // create an object to start withvar example = ; // call it's row method and pass in agruments// each subsequent argument is another column // first we'll add some column headersexample; // then add some data (and do some tweaking of that);stooges; // then when we're ready, just print it out:example; // will print this:/*Name Height Girth Larry short skinny Curly medium or tall skinny Moe tall corpulent */
Changelog
0.1.0
- Adding length method
Licence
MIT