node-tabular
Create fluid lists in which the first column adapts to the content
Usage
Using this module is really simple. The example below should show you everything you need to know about the module:
var Tabular = ; var tab = // allows you to control the padding between the two columns padding: 4 // default is 2 // allows you to control the left margin of the first column marginLeft: 2 // default is 0; tab;tab; console;
Sorting
You can also sort the list by the first
or second
column like so:
// ... console;
Note that once you sort the list, the original order is lost.