UNPKG
babar
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
CLI bar charts
github.com/stephan83/babar
stephan83/babar
babar
/
examples
/
ascii.js
10 lines
(6 loc)
•
190 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
babar =
require
(
'../lib/babar'
); points = [];
for
(
var
i =
0
; i <
Math
.
PI
*
2
; i +=
Math
.
PI
/
1000
) { points.
push
([i,
Math
.
cos
(i)]); }
console
.
log
(
babar
(points, {
color
:
'ascii'
}));