tabulate

fit tabular data to the width of your terminal

SYNOPSIS

columns for streams

EXAMPLE

var Tabulate = require('./index')
var t = Tabulate(process.stdout)
 
function rnum(minmax) {
  return Math.floor(Math.random() * (max - min) + min)
}
 
var r = Array
  .apply(null, Array(130))
  .map(function() { return String(rnum(1, 1e9)) })
 
console.log(t.write(r))

Here is the output from an actual project that uses the tabulate module.