An open API service indexing awesome lists of open source software.

https://github.com/heapwolf/tabulate

fit tabular data to the width of your terminal
https://github.com/heapwolf/tabulate

Last synced: about 1 month ago
JSON representation

fit tabular data to the width of your terminal

Awesome Lists containing this project

README

        

# SYNOPSIS
columns for streams

# EXAMPLE
### Code
```js
var Tabulate = require('./index')
var t = Tabulate(process.stdout)

function rnum(min, max) {
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))
```

### Output
Here is the output from an actual project that uses the
[`tabulate`](https://github.com/hij1nx/lev) module.

![img](/cols.png)