UNPKG
tabulate
Version:
latest (1.0.0)
1.0.0
0.0.1
fit tabular data to the width of your terminal
github.com/hij1nx/tabulate
hij1nx/tabulate
tabulate
/
test.js
13 lines
(9 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
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))