forked from sindresorhus/boxen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.js
106 lines (96 loc) · 2.22 KB
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
'use strict';
const chalk = require('chalk');
const carden = require('.');
console.log(carden('Chidi',
'You put the Peeps in the chili \npot and it makes it taste bad.', {
header: {
backgroundColor: 'blue'
}
}));
console.log(carden('Tahani',
`It's not about who you know. Enlightenment comes from within.
The Dalai Lama texted me that.`, {
margin: 2,
header: {
backgroundColor: 'blue',
padding: 1
},
content: {
borderStyle: 'classic',
borderColor: 'yellow'
}
}));
console.log(carden('Eleanor',
`That Eleanor is a better Eleanor than this one. And
that is not easy for me to say.
"You're not better than me" was my yearbook quote.`, {
borderStyle: 'double',
borderColor: 'green',
header: {
backgroundColor: 'blue',
padding: 1
}
}));
console.log(carden('Jason',
chalk.black(`I always trust dudes in bow ties. Once, this guy
in a bow tie came up to me at the gun range in a
Jacksonville bus station and said he'd give me
$600 if I put these weird turtles in my duffle
bag and brought them to Daytona Beach.
So I hotwired a swamp boat to Daytona and the guy
paid me the $600. My point is, you always trust
dudes in bow ties.`), {
padding: 1,
header: {
backgroundColor: 'blue',
borderStyle: 'classic',
borderColor: 'cyan'
},
content: {
backgroundColor: 'white',
borderStyle: 'round',
borderColor: 'yellow'
}
}));
console.log(carden('Janet',
`Is it an error to act unpredictably and behave in
ways that run counter to how you were programmed
to behave?`, {
margin: 1,
borderStyle: 'single',
padding: 1,
header: {
backgroundColor: 'green'
},
content: {
backgroundColor: 'blue'
}
}));
console.log(carden('Janet',
`Is it an error to act unpredictably and behave in
ways that run counter to how you were programmed
to behave?`, {
margin: 1,
borderStyle: 'blank',
padding: 1,
header: {
backgroundColor: 'green'
},
content: {
backgroundColor: 'blue'
}
}));
console.log(carden('Janet',
`Is it an error to act unpredictably and behave in
ways that run counter to how you were programmed
to behave?`, {
margin: 1,
borderStyle: 'none',
padding: 1,
header: {
backgroundColor: 'green'
},
content: {
backgroundColor: 'blue'
}
}));