https://github.com/heapwolf/tabulate
fit tabular data to the width of your terminal
https://github.com/heapwolf/tabulate
Last synced: 10 months ago
JSON representation
fit tabular data to the width of your terminal
- Host: GitHub
- URL: https://github.com/heapwolf/tabulate
- Owner: heapwolf
- License: mit
- Created: 2014-03-23T16:08:42.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-23T17:47:27.000Z (about 12 years ago)
- Last Synced: 2025-08-09T16:59:36.589Z (10 months ago)
- Language: JavaScript
- Size: 219 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.
