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
- Host: GitHub
- URL: https://github.com/heapwolf/tabulate
- Owner: heapwolf
- License: mit
- Created: 2014-03-23T16:08:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-23T17:47:27.000Z (about 11 years ago)
- Last Synced: 2024-04-29T17:43:16.517Z (about 1 year ago)
- Language: JavaScript
- Size: 219 KB
- Stars: 10
- Watchers: 3
- 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.