before integrating figlet
This commit is contained in:
parent
155ba55674
commit
f1e50a0c08
2
coverage/coverage-final.json
Normal file
2
coverage/coverage-final.json
Normal file
File diff suppressed because one or more lines are too long
212
coverage/lcov-report/base.css
Normal file
212
coverage/lcov-report/base.css
Normal file
@ -0,0 +1,212 @@
|
|||||||
|
body, html {
|
||||||
|
margin:0; padding: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-family: Helvetica Neue, Helvetica, Arial;
|
||||||
|
font-size: 14px;
|
||||||
|
color:#333;
|
||||||
|
}
|
||||||
|
.small { font-size: 12px;; }
|
||||||
|
*, *:after, *:before {
|
||||||
|
-webkit-box-sizing:border-box;
|
||||||
|
-moz-box-sizing:border-box;
|
||||||
|
box-sizing:border-box;
|
||||||
|
}
|
||||||
|
h1 { font-size: 20px; margin: 0;}
|
||||||
|
h2 { font-size: 14px; }
|
||||||
|
pre {
|
||||||
|
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
-moz-tab-size: 2;
|
||||||
|
-o-tab-size: 2;
|
||||||
|
tab-size: 2;
|
||||||
|
}
|
||||||
|
a { color:#0074D9; text-decoration:none; }
|
||||||
|
a:hover { text-decoration:underline; }
|
||||||
|
.strong { font-weight: bold; }
|
||||||
|
.space-top1 { padding: 10px 0 0 0; }
|
||||||
|
.pad2y { padding: 20px 0; }
|
||||||
|
.pad1y { padding: 10px 0; }
|
||||||
|
.pad2x { padding: 0 20px; }
|
||||||
|
.pad2 { padding: 20px; }
|
||||||
|
.pad1 { padding: 10px; }
|
||||||
|
.space-left2 { padding-left:55px; }
|
||||||
|
.space-right2 { padding-right:20px; }
|
||||||
|
.center { text-align:center; }
|
||||||
|
.clearfix { display:block; }
|
||||||
|
.clearfix:after {
|
||||||
|
content:'';
|
||||||
|
display:block;
|
||||||
|
height:0;
|
||||||
|
clear:both;
|
||||||
|
visibility:hidden;
|
||||||
|
}
|
||||||
|
.fl { float: left; }
|
||||||
|
@media only screen and (max-width:640px) {
|
||||||
|
.col3 { width:100%; max-width:100%; }
|
||||||
|
.hide-mobile { display:none!important; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.quiet {
|
||||||
|
color: #7f7f7f;
|
||||||
|
color: rgba(0,0,0,0.5);
|
||||||
|
}
|
||||||
|
.quiet a { opacity: 0.7; }
|
||||||
|
|
||||||
|
.fraction {
|
||||||
|
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #555;
|
||||||
|
background: #E8E8E8;
|
||||||
|
padding: 4px 5px;
|
||||||
|
border-radius: 3px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.path a:link, div.path a:visited { color: #333; }
|
||||||
|
table.coverage {
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin: 10px 0 0 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.coverage td {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
table.coverage td.line-count {
|
||||||
|
text-align: right;
|
||||||
|
padding: 0 5px 0 20px;
|
||||||
|
}
|
||||||
|
table.coverage td.line-coverage {
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 10px;
|
||||||
|
min-width:20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.coverage td span.cline-any {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 5px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.missing-if-branch {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 5px;
|
||||||
|
border-radius: 3px;
|
||||||
|
position: relative;
|
||||||
|
padding: 0 4px;
|
||||||
|
background: #333;
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skip-if-branch {
|
||||||
|
display: none;
|
||||||
|
margin-right: 10px;
|
||||||
|
position: relative;
|
||||||
|
padding: 0 4px;
|
||||||
|
background: #ccc;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.missing-if-branch .typ, .skip-if-branch .typ {
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
.coverage-summary {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
||||||
|
.keyline-all { border: 1px solid #ddd; }
|
||||||
|
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
||||||
|
.coverage-summary tbody { border: 1px solid #bbb; }
|
||||||
|
.coverage-summary td { border-right: 1px solid #bbb; }
|
||||||
|
.coverage-summary td:last-child { border-right: none; }
|
||||||
|
.coverage-summary th {
|
||||||
|
text-align: left;
|
||||||
|
font-weight: normal;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.coverage-summary th.file { border-right: none !important; }
|
||||||
|
.coverage-summary th.pct { }
|
||||||
|
.coverage-summary th.pic,
|
||||||
|
.coverage-summary th.abs,
|
||||||
|
.coverage-summary td.pct,
|
||||||
|
.coverage-summary td.abs { text-align: right; }
|
||||||
|
.coverage-summary td.file { white-space: nowrap; }
|
||||||
|
.coverage-summary td.pic { min-width: 120px !important; }
|
||||||
|
.coverage-summary tfoot td { }
|
||||||
|
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
height: 10px;
|
||||||
|
width: 7px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 0.5em;
|
||||||
|
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
||||||
|
}
|
||||||
|
.coverage-summary .sorted .sorter {
|
||||||
|
background-position: 0 -20px;
|
||||||
|
}
|
||||||
|
.coverage-summary .sorted-desc .sorter {
|
||||||
|
background-position: 0 -10px;
|
||||||
|
}
|
||||||
|
.status-line { height: 10px; }
|
||||||
|
/* dark red */
|
||||||
|
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
||||||
|
.low .chart { border:1px solid #C21F39 }
|
||||||
|
/* medium red */
|
||||||
|
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
||||||
|
/* light red */
|
||||||
|
.low, .cline-no { background:#FCE1E5 }
|
||||||
|
/* light green */
|
||||||
|
.high, .cline-yes { background:rgb(230,245,208) }
|
||||||
|
/* medium green */
|
||||||
|
.cstat-yes { background:rgb(161,215,106) }
|
||||||
|
/* dark green */
|
||||||
|
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
||||||
|
.high .chart { border:1px solid rgb(77,146,33) }
|
||||||
|
|
||||||
|
|
||||||
|
.medium .chart { border:1px solid #666; }
|
||||||
|
.medium .cover-fill { background: #666; }
|
||||||
|
|
||||||
|
.cbranch-no { background: yellow !important; color: #111; }
|
||||||
|
|
||||||
|
.cstat-skip { background: #ddd; color: #111; }
|
||||||
|
.fstat-skip { background: #ddd; color: #111 !important; }
|
||||||
|
.cbranch-skip { background: #ddd !important; color: #111; }
|
||||||
|
|
||||||
|
span.cline-neutral { background: #eaeaea; }
|
||||||
|
.medium { background: #eaeaea; }
|
||||||
|
|
||||||
|
.cover-fill, .cover-empty {
|
||||||
|
display:inline-block;
|
||||||
|
height: 12px;
|
||||||
|
}
|
||||||
|
.chart {
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
.cover-empty {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
.cover-full {
|
||||||
|
border-right: none !important;
|
||||||
|
}
|
||||||
|
pre.prettyprint {
|
||||||
|
border: none !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
.com { color: #999 !important; }
|
||||||
|
.ignore-none { color: #999; font-weight: normal; }
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
min-height: 100%;
|
||||||
|
height: auto !important;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0 auto -48px;
|
||||||
|
}
|
||||||
|
.footer, .push {
|
||||||
|
height: 48px;
|
||||||
|
}
|
93
coverage/lcov-report/beautylog/index.html
Normal file
93
coverage/lcov-report/beautylog/index.html
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for beautylog/</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="../prettify.css" />
|
||||||
|
<link rel="stylesheet" href="../base.css" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(../sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1>
|
||||||
|
<a href="../index.html">all files</a> beautylog/
|
||||||
|
</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">80.99% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>115/142</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">77.78% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>35/45</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">81.25% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>26/32</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">81.02% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>111/137</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='status-line high'></div>
|
||||||
|
<div class="pad1">
|
||||||
|
<table class="coverage-summary">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
||||||
|
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
||||||
|
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
||||||
|
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
||||||
|
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
||||||
|
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
||||||
|
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr>
|
||||||
|
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
||||||
|
<td data-value="80.99" class="pic high"><div class="chart"><div class="cover-fill" style="width: 80%;"></div><div class="cover-empty" style="width:20%;"></div></div></td>
|
||||||
|
<td data-value="80.99" class="pct high">80.99%</td>
|
||||||
|
<td data-value="142" class="abs high">115/142</td>
|
||||||
|
<td data-value="77.78" class="pct medium">77.78%</td>
|
||||||
|
<td data-value="45" class="abs medium">35/45</td>
|
||||||
|
<td data-value="81.25" class="pct high">81.25%</td>
|
||||||
|
<td data-value="32" class="abs high">26/32</td>
|
||||||
|
<td data-value="81.02" class="pct high">81.02%</td>
|
||||||
|
<td data-value="137" class="abs high">111/137</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div><div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage
|
||||||
|
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Feb 11 2016 02:21:10 GMT+0100 (CET)
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="../prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
if (typeof prettyPrint === 'function') {
|
||||||
|
prettyPrint();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="../sorter.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
878
coverage/lcov-report/beautylog/index.js.html
Normal file
878
coverage/lcov-report/beautylog/index.js.html
Normal file
@ -0,0 +1,878 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for beautylog/index.js</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="../prettify.css" />
|
||||||
|
<link rel="stylesheet" href="../base.css" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(../sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1>
|
||||||
|
<a href="../index.html">all files</a> / <a href="index.html">beautylog/</a> index.js
|
||||||
|
</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">80.99% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>115/142</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">77.78% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>35/45</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">81.25% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>26/32</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">81.02% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>111/137</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='status-line high'></div>
|
||||||
|
<pre><table class="coverage">
|
||||||
|
<tr><td class="line-count quiet">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
|
||||||
|
107
|
||||||
|
108
|
||||||
|
109
|
||||||
|
110
|
||||||
|
111
|
||||||
|
112
|
||||||
|
113
|
||||||
|
114
|
||||||
|
115
|
||||||
|
116
|
||||||
|
117
|
||||||
|
118
|
||||||
|
119
|
||||||
|
120
|
||||||
|
121
|
||||||
|
122
|
||||||
|
123
|
||||||
|
124
|
||||||
|
125
|
||||||
|
126
|
||||||
|
127
|
||||||
|
128
|
||||||
|
129
|
||||||
|
130
|
||||||
|
131
|
||||||
|
132
|
||||||
|
133
|
||||||
|
134
|
||||||
|
135
|
||||||
|
136
|
||||||
|
137
|
||||||
|
138
|
||||||
|
139
|
||||||
|
140
|
||||||
|
141
|
||||||
|
142
|
||||||
|
143
|
||||||
|
144
|
||||||
|
145
|
||||||
|
146
|
||||||
|
147
|
||||||
|
148
|
||||||
|
149
|
||||||
|
150
|
||||||
|
151
|
||||||
|
152
|
||||||
|
153
|
||||||
|
154
|
||||||
|
155
|
||||||
|
156
|
||||||
|
157
|
||||||
|
158
|
||||||
|
159
|
||||||
|
160
|
||||||
|
161
|
||||||
|
162
|
||||||
|
163
|
||||||
|
164
|
||||||
|
165
|
||||||
|
166
|
||||||
|
167
|
||||||
|
168
|
||||||
|
169
|
||||||
|
170
|
||||||
|
171
|
||||||
|
172
|
||||||
|
173
|
||||||
|
174
|
||||||
|
175
|
||||||
|
176
|
||||||
|
177
|
||||||
|
178
|
||||||
|
179
|
||||||
|
180
|
||||||
|
181
|
||||||
|
182
|
||||||
|
183
|
||||||
|
184
|
||||||
|
185
|
||||||
|
186
|
||||||
|
187
|
||||||
|
188
|
||||||
|
189
|
||||||
|
190
|
||||||
|
191
|
||||||
|
192
|
||||||
|
193
|
||||||
|
194
|
||||||
|
195
|
||||||
|
196
|
||||||
|
197
|
||||||
|
198
|
||||||
|
199
|
||||||
|
200
|
||||||
|
201
|
||||||
|
202
|
||||||
|
203
|
||||||
|
204
|
||||||
|
205
|
||||||
|
206
|
||||||
|
207
|
||||||
|
208
|
||||||
|
209
|
||||||
|
210
|
||||||
|
211
|
||||||
|
212
|
||||||
|
213
|
||||||
|
214
|
||||||
|
215
|
||||||
|
216
|
||||||
|
217
|
||||||
|
218
|
||||||
|
219
|
||||||
|
220
|
||||||
|
221
|
||||||
|
222
|
||||||
|
223
|
||||||
|
224
|
||||||
|
225
|
||||||
|
226
|
||||||
|
227
|
||||||
|
228
|
||||||
|
229
|
||||||
|
230
|
||||||
|
231
|
||||||
|
232
|
||||||
|
233
|
||||||
|
234
|
||||||
|
235
|
||||||
|
236
|
||||||
|
237
|
||||||
|
238
|
||||||
|
239
|
||||||
|
240
|
||||||
|
241
|
||||||
|
242
|
||||||
|
243
|
||||||
|
244
|
||||||
|
245
|
||||||
|
246
|
||||||
|
247
|
||||||
|
248
|
||||||
|
249
|
||||||
|
250
|
||||||
|
251
|
||||||
|
252
|
||||||
|
253
|
||||||
|
254
|
||||||
|
255
|
||||||
|
256
|
||||||
|
257
|
||||||
|
258
|
||||||
|
259
|
||||||
|
260
|
||||||
|
261
|
||||||
|
262
|
||||||
|
263
|
||||||
|
264
|
||||||
|
265
|
||||||
|
266
|
||||||
|
267
|
||||||
|
268
|
||||||
|
269
|
||||||
|
270
|
||||||
|
271
|
||||||
|
272</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">4×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">4×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">3×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">4×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">14×</span>
|
||||||
|
<span class="cline-any cline-yes">14×</span>
|
||||||
|
<span class="cline-any cline-yes">14×</span>
|
||||||
|
<span class="cline-any cline-yes">14×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">14×</span>
|
||||||
|
<span class="cline-any cline-yes">14×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-yes">2×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">#!/usr/bin/env node
|
||||||
|
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var BeautylogPlugins;
|
||||||
|
(function (BeautylogPlugins) {
|
||||||
|
BeautylogPlugins.init = function () {
|
||||||
|
var plugins = {
|
||||||
|
smartenv: require("smartenv")
|
||||||
|
};
|
||||||
|
return plugins;
|
||||||
|
};
|
||||||
|
})(BeautylogPlugins || (BeautylogPlugins = {}));
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var tableHelpers = {
|
||||||
|
makeRow: function (cellCounterArg, colorArg) {
|
||||||
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (cellCounterArg === void 0) { cellCounterArg = 2; }
|
||||||
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (colorArg === void 0) { colorArg = "cyan"; }
|
||||||
|
var rowArray = [];
|
||||||
|
for (var i = 0; i < (cellCounterArg); i++) {
|
||||||
|
rowArray.push(String(i + 1).cyan);
|
||||||
|
}
|
||||||
|
return rowArray;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var ConsoleTable = (function () {
|
||||||
|
function ConsoleTable(tableTypeArg, tableHeadArrayArg) {
|
||||||
|
if (tableHeadArrayArg === void 0) { tableHeadArrayArg = tableHelpers.makeRow(); }
|
||||||
|
switch (tableTypeArg) {
|
||||||
|
case "checks":
|
||||||
|
this.tableHead = ['Check Item:'.cyan, 'Status:'.cyan];
|
||||||
|
break;
|
||||||
|
case "custom":
|
||||||
|
this.tableHead = tableHeadArrayArg;
|
||||||
|
break;
|
||||||
|
<span class="branch-2 cbranch-no" title="branch not covered" > default:</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > break;</span>
|
||||||
|
}
|
||||||
|
this.rows = [];
|
||||||
|
this.type = tableTypeArg;
|
||||||
|
}
|
||||||
|
ConsoleTable.prototype.push = function (row) {
|
||||||
|
this.rows.push(row);
|
||||||
|
};
|
||||||
|
ConsoleTable.prototype.print = function () {
|
||||||
|
var table = new BeautylogNodeTable.cliTable({
|
||||||
|
head: this.tableHead
|
||||||
|
});
|
||||||
|
for (var row in this.rows) {
|
||||||
|
if (this.rows[row][1] == "success") {
|
||||||
|
this.rows[row][1] = ' '.bgGreen + ' ' + this.rows[row][1];
|
||||||
|
}
|
||||||
|
else if (this.rows[row][1] == "error") {
|
||||||
|
this.rows[row][1] = ' '.bgRed + ' ' + this.rows[row][1];
|
||||||
|
}
|
||||||
|
table.push(this.rows[row]);
|
||||||
|
}
|
||||||
|
;
|
||||||
|
console.log(table.toString());
|
||||||
|
};
|
||||||
|
return ConsoleTable;
|
||||||
|
})();
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var BeautylogNode;
|
||||||
|
(function (BeautylogNode) {
|
||||||
|
function init() {
|
||||||
|
plugins.colors = require("colors");
|
||||||
|
plugins.clc = require("cli-color");
|
||||||
|
var beautylogNode = {
|
||||||
|
log: BeautylogNodeLog.init(),
|
||||||
|
code: BeautylogNodeCode.init()
|
||||||
|
}; //object to append to all public facing functions
|
||||||
|
/**
|
||||||
|
* logs an directory to console
|
||||||
|
* @param logText
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
beautylogNode.dir = function (logText) {
|
||||||
|
return beautylogNode.log(logText, 'dir');
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* logs an error to console
|
||||||
|
* @param logText
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
beautylogNode.error = function (logText) {
|
||||||
|
return beautylogNode.log(logText, 'error');
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* logs an info to console
|
||||||
|
* @param logText
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
beautylogNode.info = function (logText) {
|
||||||
|
return beautylogNode.log(logText, 'info');
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* logs an 'OK!' message to console
|
||||||
|
* @param logText
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
beautylogNode.ok = function (logText) {
|
||||||
|
return beautylogNode.log(logText, 'ok');
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* logs a success to console
|
||||||
|
* @param logText string to log as error
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
beautylogNode.success = function (logText) {
|
||||||
|
return beautylogNode.log(logText, 'success');
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* logs a 'warn:' message to console
|
||||||
|
* @param logText string to log as error
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
beautylogNode.warn = function (logText) {
|
||||||
|
return beautylogNode.log(logText, 'warn');
|
||||||
|
};
|
||||||
|
beautylogNode.table = BeautylogNodeTable.init();
|
||||||
|
return beautylogNode;
|
||||||
|
}
|
||||||
|
BeautylogNode.init = init;
|
||||||
|
})(BeautylogNode || (BeautylogNode = {}));
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var BeautylogNodeLog;
|
||||||
|
(function (BeautylogNodeLog) {
|
||||||
|
BeautylogNodeLog.init = function () {
|
||||||
|
var localBl = {
|
||||||
|
dirPrefix: plugins.clc.bgXterm(39).xterm(231).bold(' DIR ') + ' ',
|
||||||
|
errorPrefix: ' Error: '.bgRed.white.bold + ' ',
|
||||||
|
infoPrefix: plugins.clc.bgXterm(198).xterm(231).bold(' INFO ') + ' ',
|
||||||
|
normalPrefix: ' Log: '.bgCyan.white.bold + ' ',
|
||||||
|
okPrefix: ' '.bgGreen + ' OK! '.bgBlack.green.bold + ' ',
|
||||||
|
successPrefix: ' Success: '.bgGreen.white.bold + ' ',
|
||||||
|
warnPrefix: ' '.bgYellow + ' Warn: '.bgBlack.yellow.bold + ' '
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param logText
|
||||||
|
* @param logType
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
var logFunction = function (logText, logType) {
|
||||||
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (logText === void 0) { <span class="cstat-no" title="statement not covered" >logText = 'empty log'; </span>}
|
||||||
|
if (logType === void 0) { logType = 'normal'; }
|
||||||
|
try {
|
||||||
|
switch (logType) {
|
||||||
|
case 'dir':
|
||||||
|
logText = localBl.dirPrefix + plugins.clc.xterm(26)(logText);
|
||||||
|
break;
|
||||||
|
case 'error':
|
||||||
|
logText = localBl.errorPrefix + logText.red.bold;
|
||||||
|
break;
|
||||||
|
case 'info':
|
||||||
|
logText = localBl.infoPrefix + plugins.clc.xterm(198)(logText);
|
||||||
|
break;
|
||||||
|
case 'normal':
|
||||||
|
logText = localBl.normalPrefix + logText.cyan.bold;
|
||||||
|
break;
|
||||||
|
case 'ok':
|
||||||
|
logText = localBl.okPrefix + logText.bold;
|
||||||
|
break;
|
||||||
|
case 'success':
|
||||||
|
logText = localBl.successPrefix + logText.green.bold;
|
||||||
|
break;
|
||||||
|
case 'warn':
|
||||||
|
logText = localBl.warnPrefix + logText.bold;
|
||||||
|
break;
|
||||||
|
<span class="branch-7 cbranch-no" title="branch not covered" > case 'log':</span>
|
||||||
|
<span class="branch-8 cbranch-no" title="branch not covered" > default:</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > logText.blue.bold;</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log(('unknown logType for "' + logText + '"').red.bold);</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > break;</span>
|
||||||
|
}
|
||||||
|
console.log(logText);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log(localBl.errorPrefix + 'You seem to have tried logging something strange'.red.bold + error);</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return false;</span>
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return logFunction;
|
||||||
|
};
|
||||||
|
})(BeautylogNodeLog || (BeautylogNodeLog = {}));
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var BeautylogNodeCode;
|
||||||
|
(function (BeautylogNodeCode) {
|
||||||
|
BeautylogNodeCode.init = function () {
|
||||||
|
var codeFunction = function (codeString, options) {
|
||||||
|
var hlight = require("hlight");
|
||||||
|
var codeSnippet = {
|
||||||
|
source: codeString,
|
||||||
|
highlighted: "default"
|
||||||
|
};
|
||||||
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (typeof codeString != "string") {
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log("beautylog.code() expects a string as first argument!");</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
|
}
|
||||||
|
;
|
||||||
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (typeof options != "undefined") {
|
||||||
|
codeSnippet.highlighted = hlight(codeSnippet.source, options.language);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return codeFunction;
|
||||||
|
};
|
||||||
|
})(BeautylogNodeCode || (BeautylogNodeCode = {}));
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var BeautylogNodeTable;
|
||||||
|
(function (BeautylogNodeTable) {
|
||||||
|
function init() {
|
||||||
|
BeautylogNodeTable.cliTable = require("cli-table2");
|
||||||
|
var beautylogOsTable = {};
|
||||||
|
beautylogOsTable.new = function (typeArg, tableHeadArrayArg) {
|
||||||
|
var newConsoleTable = new ConsoleTable(typeArg, tableHeadArrayArg);
|
||||||
|
return newConsoleTable;
|
||||||
|
};
|
||||||
|
return beautylogOsTable;
|
||||||
|
}
|
||||||
|
BeautylogNodeTable.init = init;
|
||||||
|
})(BeautylogNodeTable || (BeautylogNodeTable = {}));
|
||||||
|
/// <reference path="./index.ts" />
|
||||||
|
var BeautylogBrowser;
|
||||||
|
(function (BeautylogBrowser) {
|
||||||
|
<span class="fstat-no" title="function not covered" > function init() {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > var beautylogBrowser = {};</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > beautylogBrowser.log = <span class="fstat-no" title="function not covered" >function (message) {</span></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;");</span>
|
||||||
|
};
|
||||||
|
<span class="cstat-no" title="statement not covered" > beautylogBrowser.info = <span class="fstat-no" title="function not covered" >function (message) {</span></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log('%c Info: %c ' + message, 'background:#EC407A;color:#ffffff;', 'color:#EC407A;');</span>
|
||||||
|
};
|
||||||
|
<span class="cstat-no" title="statement not covered" > beautylogBrowser.ok = <span class="fstat-no" title="function not covered" >function (message) {</span></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log('%c OK: %c ' + message, "background:#000000;color:#8BC34A;", "color:#000000;");</span>
|
||||||
|
};
|
||||||
|
<span class="cstat-no" title="statement not covered" > beautylogBrowser.success = <span class="fstat-no" title="function not covered" >function (message) {</span></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log('%c Success: %c ' + message, "background:#8BC34A;color:#ffffff;", "color:#8BC34A;");</span>
|
||||||
|
};
|
||||||
|
<span class="cstat-no" title="statement not covered" > beautylogBrowser.warn = <span class="fstat-no" title="function not covered" >function (message) {</span></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;");</span>
|
||||||
|
};
|
||||||
|
<span class="cstat-no" title="statement not covered" > return beautylogBrowser;</span>
|
||||||
|
}
|
||||||
|
BeautylogBrowser.init = init;
|
||||||
|
})(BeautylogBrowser || (BeautylogBrowser = {}));
|
||||||
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
/// <reference path="./beautylog.plugins.ts" />
|
||||||
|
/// <reference path="./beautylog.classes.ts" />
|
||||||
|
/// <reference path="./beautylog.node.ts" />
|
||||||
|
/// <reference path="./beautylog.node.log.ts" />
|
||||||
|
/// <reference path="./beautylog.node.code.ts" />
|
||||||
|
/// <reference path="./beautylog.node.table.ts" />
|
||||||
|
/// <reference path="./beautylog.browser.ts" />
|
||||||
|
var plugins = BeautylogPlugins.init();
|
||||||
|
var beautylog = (function () {
|
||||||
|
switch (plugins.smartenv.getEnv().runtimeEnv) {
|
||||||
|
case "node":
|
||||||
|
var beautylogOs = BeautylogNode.init();
|
||||||
|
return beautylogOs;
|
||||||
|
<span class="cstat-no" title="statement not covered" > break;</span>
|
||||||
|
<span class="branch-1 cbranch-no" title="branch not covered" > case "browser":</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > var beautylogBrowser = BeautylogBrowser.init();</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return beautylogBrowser;</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > break;</span>
|
||||||
|
<span class="branch-2 cbranch-no" title="branch not covered" > default:</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log("something is strange about the platform in which you try to use beautylog");</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > break;</span>
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
module.exports = beautylog;
|
||||||
|
</pre></td></tr>
|
||||||
|
</table></pre>
|
||||||
|
<div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage
|
||||||
|
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Feb 11 2016 02:21:10 GMT+0100 (CET)
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="../prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
if (typeof prettyPrint === 'function') {
|
||||||
|
prettyPrint();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="../sorter.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
93
coverage/lcov-report/index.html
Normal file
93
coverage/lcov-report/index.html
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for All files</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="prettify.css" />
|
||||||
|
<link rel="stylesheet" href="base.css" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1>
|
||||||
|
/
|
||||||
|
</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">80.99% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>115/142</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">77.78% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>35/45</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">81.25% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>26/32</span>
|
||||||
|
</div>
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">81.02% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>111/137</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='status-line high'></div>
|
||||||
|
<div class="pad1">
|
||||||
|
<table class="coverage-summary">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
||||||
|
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
||||||
|
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
||||||
|
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
||||||
|
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
||||||
|
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
||||||
|
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr>
|
||||||
|
<td class="file high" data-value="beautylog/"><a href="beautylog/index.html">beautylog/</a></td>
|
||||||
|
<td data-value="80.99" class="pic high"><div class="chart"><div class="cover-fill" style="width: 80%;"></div><div class="cover-empty" style="width:20%;"></div></div></td>
|
||||||
|
<td data-value="80.99" class="pct high">80.99%</td>
|
||||||
|
<td data-value="142" class="abs high">115/142</td>
|
||||||
|
<td data-value="77.78" class="pct medium">77.78%</td>
|
||||||
|
<td data-value="45" class="abs medium">35/45</td>
|
||||||
|
<td data-value="81.25" class="pct high">81.25%</td>
|
||||||
|
<td data-value="32" class="abs high">26/32</td>
|
||||||
|
<td data-value="81.02" class="pct high">81.02%</td>
|
||||||
|
<td data-value="137" class="abs high">111/137</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div><div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage
|
||||||
|
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Feb 11 2016 02:21:10 GMT+0100 (CET)
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
if (typeof prettyPrint === 'function') {
|
||||||
|
prettyPrint();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="sorter.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
1
coverage/lcov-report/prettify.css
Normal file
1
coverage/lcov-report/prettify.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
|
1
coverage/lcov-report/prettify.js
Normal file
1
coverage/lcov-report/prettify.js
Normal file
File diff suppressed because one or more lines are too long
BIN
coverage/lcov-report/sort-arrow-sprite.png
Normal file
BIN
coverage/lcov-report/sort-arrow-sprite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 209 B |
158
coverage/lcov-report/sorter.js
Normal file
158
coverage/lcov-report/sorter.js
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
var addSorting = (function () {
|
||||||
|
"use strict";
|
||||||
|
var cols,
|
||||||
|
currentSort = {
|
||||||
|
index: 0,
|
||||||
|
desc: false
|
||||||
|
};
|
||||||
|
|
||||||
|
// returns the summary table element
|
||||||
|
function getTable() { return document.querySelector('.coverage-summary'); }
|
||||||
|
// returns the thead element of the summary table
|
||||||
|
function getTableHeader() { return getTable().querySelector('thead tr'); }
|
||||||
|
// returns the tbody element of the summary table
|
||||||
|
function getTableBody() { return getTable().querySelector('tbody'); }
|
||||||
|
// returns the th element for nth column
|
||||||
|
function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
|
||||||
|
|
||||||
|
// loads all columns
|
||||||
|
function loadColumns() {
|
||||||
|
var colNodes = getTableHeader().querySelectorAll('th'),
|
||||||
|
colNode,
|
||||||
|
cols = [],
|
||||||
|
col,
|
||||||
|
i;
|
||||||
|
|
||||||
|
for (i = 0; i < colNodes.length; i += 1) {
|
||||||
|
colNode = colNodes[i];
|
||||||
|
col = {
|
||||||
|
key: colNode.getAttribute('data-col'),
|
||||||
|
sortable: !colNode.getAttribute('data-nosort'),
|
||||||
|
type: colNode.getAttribute('data-type') || 'string'
|
||||||
|
};
|
||||||
|
cols.push(col);
|
||||||
|
if (col.sortable) {
|
||||||
|
col.defaultDescSort = col.type === 'number';
|
||||||
|
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return cols;
|
||||||
|
}
|
||||||
|
// attaches a data attribute to every tr element with an object
|
||||||
|
// of data values keyed by column name
|
||||||
|
function loadRowData(tableRow) {
|
||||||
|
var tableCols = tableRow.querySelectorAll('td'),
|
||||||
|
colNode,
|
||||||
|
col,
|
||||||
|
data = {},
|
||||||
|
i,
|
||||||
|
val;
|
||||||
|
for (i = 0; i < tableCols.length; i += 1) {
|
||||||
|
colNode = tableCols[i];
|
||||||
|
col = cols[i];
|
||||||
|
val = colNode.getAttribute('data-value');
|
||||||
|
if (col.type === 'number') {
|
||||||
|
val = Number(val);
|
||||||
|
}
|
||||||
|
data[col.key] = val;
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
// loads all row data
|
||||||
|
function loadData() {
|
||||||
|
var rows = getTableBody().querySelectorAll('tr'),
|
||||||
|
i;
|
||||||
|
|
||||||
|
for (i = 0; i < rows.length; i += 1) {
|
||||||
|
rows[i].data = loadRowData(rows[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// sorts the table using the data for the ith column
|
||||||
|
function sortByIndex(index, desc) {
|
||||||
|
var key = cols[index].key,
|
||||||
|
sorter = function (a, b) {
|
||||||
|
a = a.data[key];
|
||||||
|
b = b.data[key];
|
||||||
|
return a < b ? -1 : a > b ? 1 : 0;
|
||||||
|
},
|
||||||
|
finalSorter = sorter,
|
||||||
|
tableBody = document.querySelector('.coverage-summary tbody'),
|
||||||
|
rowNodes = tableBody.querySelectorAll('tr'),
|
||||||
|
rows = [],
|
||||||
|
i;
|
||||||
|
|
||||||
|
if (desc) {
|
||||||
|
finalSorter = function (a, b) {
|
||||||
|
return -1 * sorter(a, b);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < rowNodes.length; i += 1) {
|
||||||
|
rows.push(rowNodes[i]);
|
||||||
|
tableBody.removeChild(rowNodes[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
rows.sort(finalSorter);
|
||||||
|
|
||||||
|
for (i = 0; i < rows.length; i += 1) {
|
||||||
|
tableBody.appendChild(rows[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// removes sort indicators for current column being sorted
|
||||||
|
function removeSortIndicators() {
|
||||||
|
var col = getNthColumn(currentSort.index),
|
||||||
|
cls = col.className;
|
||||||
|
|
||||||
|
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
|
||||||
|
col.className = cls;
|
||||||
|
}
|
||||||
|
// adds sort indicators for current column being sorted
|
||||||
|
function addSortIndicators() {
|
||||||
|
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
|
||||||
|
}
|
||||||
|
// adds event listeners for all sorter widgets
|
||||||
|
function enableUI() {
|
||||||
|
var i,
|
||||||
|
el,
|
||||||
|
ithSorter = function ithSorter(i) {
|
||||||
|
var col = cols[i];
|
||||||
|
|
||||||
|
return function () {
|
||||||
|
var desc = col.defaultDescSort;
|
||||||
|
|
||||||
|
if (currentSort.index === i) {
|
||||||
|
desc = !currentSort.desc;
|
||||||
|
}
|
||||||
|
sortByIndex(i, desc);
|
||||||
|
removeSortIndicators();
|
||||||
|
currentSort.index = i;
|
||||||
|
currentSort.desc = desc;
|
||||||
|
addSortIndicators();
|
||||||
|
};
|
||||||
|
};
|
||||||
|
for (i =0 ; i < cols.length; i += 1) {
|
||||||
|
if (cols[i].sortable) {
|
||||||
|
// add the click event handler on the th so users
|
||||||
|
// dont have to click on those tiny arrows
|
||||||
|
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
||||||
|
if (el.addEventListener) {
|
||||||
|
el.addEventListener('click', ithSorter(i));
|
||||||
|
} else {
|
||||||
|
el.attachEvent('onclick', ithSorter(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// adds sorting functionality to the UI
|
||||||
|
return function () {
|
||||||
|
if (!getTable()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
cols = loadColumns();
|
||||||
|
loadData(cols);
|
||||||
|
addSortIndicators();
|
||||||
|
enableUI();
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
|
||||||
|
window.addEventListener('load', addSorting);
|
255
coverage/lcov.info
Normal file
255
coverage/lcov.info
Normal file
@ -0,0 +1,255 @@
|
|||||||
|
TN:
|
||||||
|
SF:/Users/philkunz/github/pushrocks/beautylog/index.js
|
||||||
|
FN:5,(anonymous_1)
|
||||||
|
FN:6,(anonymous_2)
|
||||||
|
FN:15,(anonymous_3)
|
||||||
|
FN:25,(anonymous_4)
|
||||||
|
FN:26,ConsoleTable
|
||||||
|
FN:41,(anonymous_6)
|
||||||
|
FN:44,(anonymous_7)
|
||||||
|
FN:64,(anonymous_8)
|
||||||
|
FN:65,init
|
||||||
|
FN:77,(anonymous_10)
|
||||||
|
FN:85,(anonymous_11)
|
||||||
|
FN:93,(anonymous_12)
|
||||||
|
FN:101,(anonymous_13)
|
||||||
|
FN:109,(anonymous_14)
|
||||||
|
FN:117,(anonymous_15)
|
||||||
|
FN:127,(anonymous_16)
|
||||||
|
FN:128,(anonymous_17)
|
||||||
|
FN:144,(anonymous_18)
|
||||||
|
FN:189,(anonymous_19)
|
||||||
|
FN:190,(anonymous_20)
|
||||||
|
FN:191,(anonymous_21)
|
||||||
|
FN:211,(anonymous_22)
|
||||||
|
FN:212,init
|
||||||
|
FN:215,(anonymous_24)
|
||||||
|
FN:225,(anonymous_25)
|
||||||
|
FN:226,init
|
||||||
|
FN:228,(anonymous_27)
|
||||||
|
FN:231,(anonymous_28)
|
||||||
|
FN:234,(anonymous_29)
|
||||||
|
FN:237,(anonymous_30)
|
||||||
|
FN:240,(anonymous_31)
|
||||||
|
FN:256,(anonymous_32)
|
||||||
|
FNF:32
|
||||||
|
FNH:26
|
||||||
|
FNDA:1,(anonymous_1)
|
||||||
|
FNDA:1,(anonymous_2)
|
||||||
|
FNDA:1,(anonymous_3)
|
||||||
|
FNDA:1,(anonymous_4)
|
||||||
|
FNDA:2,ConsoleTable
|
||||||
|
FNDA:4,(anonymous_6)
|
||||||
|
FNDA:2,(anonymous_7)
|
||||||
|
FNDA:1,(anonymous_8)
|
||||||
|
FNDA:1,init
|
||||||
|
FNDA:1,(anonymous_10)
|
||||||
|
FNDA:1,(anonymous_11)
|
||||||
|
FNDA:1,(anonymous_12)
|
||||||
|
FNDA:1,(anonymous_13)
|
||||||
|
FNDA:1,(anonymous_14)
|
||||||
|
FNDA:1,(anonymous_15)
|
||||||
|
FNDA:1,(anonymous_16)
|
||||||
|
FNDA:1,(anonymous_17)
|
||||||
|
FNDA:14,(anonymous_18)
|
||||||
|
FNDA:1,(anonymous_19)
|
||||||
|
FNDA:1,(anonymous_20)
|
||||||
|
FNDA:1,(anonymous_21)
|
||||||
|
FNDA:1,(anonymous_22)
|
||||||
|
FNDA:1,init
|
||||||
|
FNDA:2,(anonymous_24)
|
||||||
|
FNDA:1,(anonymous_25)
|
||||||
|
FNDA:0,init
|
||||||
|
FNDA:0,(anonymous_27)
|
||||||
|
FNDA:0,(anonymous_28)
|
||||||
|
FNDA:0,(anonymous_29)
|
||||||
|
FNDA:0,(anonymous_30)
|
||||||
|
FNDA:0,(anonymous_31)
|
||||||
|
FNDA:1,(anonymous_32)
|
||||||
|
DA:4,1
|
||||||
|
DA:5,1
|
||||||
|
DA:6,1
|
||||||
|
DA:7,1
|
||||||
|
DA:10,1
|
||||||
|
DA:14,1
|
||||||
|
DA:16,1
|
||||||
|
DA:17,1
|
||||||
|
DA:18,1
|
||||||
|
DA:19,1
|
||||||
|
DA:20,2
|
||||||
|
DA:22,1
|
||||||
|
DA:25,1
|
||||||
|
DA:26,1
|
||||||
|
DA:27,2
|
||||||
|
DA:28,2
|
||||||
|
DA:30,1
|
||||||
|
DA:31,1
|
||||||
|
DA:33,1
|
||||||
|
DA:34,1
|
||||||
|
DA:36,0
|
||||||
|
DA:38,2
|
||||||
|
DA:39,2
|
||||||
|
DA:41,1
|
||||||
|
DA:42,4
|
||||||
|
DA:44,1
|
||||||
|
DA:45,2
|
||||||
|
DA:48,2
|
||||||
|
DA:49,4
|
||||||
|
DA:50,1
|
||||||
|
DA:52,3
|
||||||
|
DA:53,2
|
||||||
|
DA:55,4
|
||||||
|
DA:58,2
|
||||||
|
DA:60,1
|
||||||
|
DA:63,1
|
||||||
|
DA:64,1
|
||||||
|
DA:65,1
|
||||||
|
DA:66,1
|
||||||
|
DA:67,1
|
||||||
|
DA:68,1
|
||||||
|
DA:77,1
|
||||||
|
DA:78,1
|
||||||
|
DA:85,1
|
||||||
|
DA:86,1
|
||||||
|
DA:93,1
|
||||||
|
DA:94,1
|
||||||
|
DA:101,1
|
||||||
|
DA:102,1
|
||||||
|
DA:109,1
|
||||||
|
DA:110,1
|
||||||
|
DA:117,1
|
||||||
|
DA:118,1
|
||||||
|
DA:120,1
|
||||||
|
DA:121,1
|
||||||
|
DA:123,1
|
||||||
|
DA:126,1
|
||||||
|
DA:127,1
|
||||||
|
DA:128,1
|
||||||
|
DA:129,1
|
||||||
|
DA:144,1
|
||||||
|
DA:145,14
|
||||||
|
DA:146,14
|
||||||
|
DA:147,14
|
||||||
|
DA:148,14
|
||||||
|
DA:150,2
|
||||||
|
DA:151,2
|
||||||
|
DA:153,2
|
||||||
|
DA:154,2
|
||||||
|
DA:156,2
|
||||||
|
DA:157,2
|
||||||
|
DA:159,2
|
||||||
|
DA:160,2
|
||||||
|
DA:162,2
|
||||||
|
DA:163,2
|
||||||
|
DA:165,2
|
||||||
|
DA:166,2
|
||||||
|
DA:168,2
|
||||||
|
DA:169,2
|
||||||
|
DA:172,0
|
||||||
|
DA:173,0
|
||||||
|
DA:174,0
|
||||||
|
DA:176,14
|
||||||
|
DA:177,14
|
||||||
|
DA:180,0
|
||||||
|
DA:181,0
|
||||||
|
DA:184,1
|
||||||
|
DA:188,1
|
||||||
|
DA:189,1
|
||||||
|
DA:190,1
|
||||||
|
DA:191,1
|
||||||
|
DA:192,1
|
||||||
|
DA:193,1
|
||||||
|
DA:197,1
|
||||||
|
DA:198,0
|
||||||
|
DA:199,0
|
||||||
|
DA:202,1
|
||||||
|
DA:203,1
|
||||||
|
DA:206,1
|
||||||
|
DA:210,1
|
||||||
|
DA:211,1
|
||||||
|
DA:212,1
|
||||||
|
DA:213,1
|
||||||
|
DA:214,1
|
||||||
|
DA:215,1
|
||||||
|
DA:216,2
|
||||||
|
DA:217,2
|
||||||
|
DA:219,1
|
||||||
|
DA:221,1
|
||||||
|
DA:224,1
|
||||||
|
DA:225,1
|
||||||
|
DA:226,1
|
||||||
|
DA:227,0
|
||||||
|
DA:228,0
|
||||||
|
DA:229,0
|
||||||
|
DA:231,0
|
||||||
|
DA:232,0
|
||||||
|
DA:234,0
|
||||||
|
DA:235,0
|
||||||
|
DA:237,0
|
||||||
|
DA:238,0
|
||||||
|
DA:240,0
|
||||||
|
DA:241,0
|
||||||
|
DA:243,0
|
||||||
|
DA:245,1
|
||||||
|
DA:255,1
|
||||||
|
DA:256,1
|
||||||
|
DA:257,1
|
||||||
|
DA:259,1
|
||||||
|
DA:260,1
|
||||||
|
DA:261,0
|
||||||
|
DA:263,0
|
||||||
|
DA:264,0
|
||||||
|
DA:265,0
|
||||||
|
DA:267,0
|
||||||
|
DA:268,0
|
||||||
|
DA:271,1
|
||||||
|
LF:137
|
||||||
|
LH:111
|
||||||
|
BRDA:12,1,0,1
|
||||||
|
BRDA:12,1,1,1
|
||||||
|
BRDA:16,2,0,1
|
||||||
|
BRDA:16,2,1,0
|
||||||
|
BRDA:17,3,0,1
|
||||||
|
BRDA:17,3,1,0
|
||||||
|
BRDA:27,4,0,1
|
||||||
|
BRDA:27,4,1,1
|
||||||
|
BRDA:28,5,0,1
|
||||||
|
BRDA:28,5,1,1
|
||||||
|
BRDA:28,5,2,0
|
||||||
|
BRDA:49,6,0,1
|
||||||
|
BRDA:49,6,1,3
|
||||||
|
BRDA:52,7,0,2
|
||||||
|
BRDA:52,7,1,1
|
||||||
|
BRDA:124,8,0,1
|
||||||
|
BRDA:124,8,1,1
|
||||||
|
BRDA:145,9,0,0
|
||||||
|
BRDA:145,9,1,14
|
||||||
|
BRDA:146,10,0,2
|
||||||
|
BRDA:146,10,1,12
|
||||||
|
BRDA:148,11,0,2
|
||||||
|
BRDA:148,11,1,2
|
||||||
|
BRDA:148,11,2,2
|
||||||
|
BRDA:148,11,3,2
|
||||||
|
BRDA:148,11,4,2
|
||||||
|
BRDA:148,11,5,2
|
||||||
|
BRDA:148,11,6,2
|
||||||
|
BRDA:148,11,7,0
|
||||||
|
BRDA:148,11,8,0
|
||||||
|
BRDA:186,12,0,1
|
||||||
|
BRDA:186,12,1,1
|
||||||
|
BRDA:197,13,0,0
|
||||||
|
BRDA:197,13,1,1
|
||||||
|
BRDA:202,14,0,1
|
||||||
|
BRDA:202,14,1,0
|
||||||
|
BRDA:208,15,0,1
|
||||||
|
BRDA:208,15,1,1
|
||||||
|
BRDA:222,16,0,1
|
||||||
|
BRDA:222,16,1,1
|
||||||
|
BRDA:246,17,0,1
|
||||||
|
BRDA:246,17,1,1
|
||||||
|
BRDA:257,18,0,1
|
||||||
|
BRDA:257,18,1,0
|
||||||
|
BRDA:257,18,2,0
|
||||||
|
BRF:45
|
||||||
|
BRH:35
|
||||||
|
end_of_record
|
@ -31,15 +31,15 @@
|
|||||||
"homepage": "https://github.com/pushrocks/beautylog",
|
"homepage": "https://github.com/pushrocks/beautylog",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cli-color": "^1.1.0",
|
"cli-color": "^1.1.0",
|
||||||
"cli-table2": "^0.1.9",
|
"cli-table2": "^0.2.0",
|
||||||
"colors": "1.1.2",
|
"colors": "1.1.2",
|
||||||
"hlight": "0.0.7",
|
"hlight": "0.0.7",
|
||||||
"smartenv": "0.0.15"
|
"smartenv": "0.0.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"easyserve": "0.0.5",
|
"easyserve": "0.0.5",
|
||||||
"gulp": "^3.9.0",
|
"gulp": "^3.9.1",
|
||||||
"gulp-browser": "1.0.7",
|
"gulp-browser": "1.0.10",
|
||||||
"npmts": "^2.0.3"
|
"npmts": "^2.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
40
test.js
40
test.js
@ -1,40 +0,0 @@
|
|||||||
/// <reference path="./typings/tsd.d.ts" />
|
|
||||||
var smartenv = require("smartenv");
|
|
||||||
var beautyLog = require('./index.js');
|
|
||||||
console.log('*** start OS console test ***');
|
|
||||||
console.log('');
|
|
||||||
console.log('declarative function calls:');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, without logType');
|
|
||||||
beautyLog.dir('beautylog.dir(), with normal logText, without logType');
|
|
||||||
beautyLog.error('beautylog.error(), with normal logText, without logType');
|
|
||||||
beautyLog.info('beautylog.dir(), with normal logText, without logType');
|
|
||||||
beautyLog.ok('beautylog.ok(), with normal logText, without logType');
|
|
||||||
beautyLog.success('beautylog.success(), with normal logText, without logType');
|
|
||||||
beautyLog.warn('beautylog.warn(), with normal logText, without logType');
|
|
||||||
console.log('');
|
|
||||||
console.log('logType String:');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, without logType');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, with logType "dir"', 'dir');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, with logType "error"', 'error');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, with logType "info"', 'info');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, with logType "ok"', 'ok');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, with logType "success"', 'success');
|
|
||||||
beautyLog.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
|
|
||||||
console.log('');
|
|
||||||
console.log('*** end OS console test ***');
|
|
||||||
console.log("*** start table test ***");
|
|
||||||
(function () {
|
|
||||||
var testTable1 = beautyLog.table.new("checks");
|
|
||||||
testTable1.push(['check1', 'success']);
|
|
||||||
testTable1.push(['check2', 'error']);
|
|
||||||
testTable1.push(['check3', 'error']);
|
|
||||||
testTable1.print();
|
|
||||||
var testTable2 = beautyLog.table.new("custom", ["Column1".red, "Column2".blue, "Column3".cyan]);
|
|
||||||
testTable2.push(["Hey", "this", "works"]);
|
|
||||||
testTable2.print();
|
|
||||||
})();
|
|
||||||
console.log("*** end table test ***");
|
|
||||||
console.log("*** start code test ***");
|
|
||||||
beautyLog.code("var test = 3; function(){}\n", {
|
|
||||||
language: "javascript"
|
|
||||||
});
|
|
3
test/test.d.ts
vendored
Normal file
3
test/test.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/// <reference path="ts/typings/main.d.ts" />
|
||||||
|
declare var smartenv: any;
|
||||||
|
declare var beautylog: any;
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
var smartenv = require("smartenv");
|
var smartenv = require("smartenv");
|
||||||
var beautylog = require('../index.js');
|
var beautylog = require('../index.js');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Compiled using typings@0.6.5
|
// Compiled using typings@0.6.8
|
||||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/colors/colors.d.ts
|
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/colors/colors.d.ts
|
||||||
// Type definitions for Colors.js 0.6.0-1
|
// Type definitions for Colors.js 0.6.0-1
|
||||||
// Project: https://github.com/Marak/colors.js
|
// Project: https://github.com/Marak/colors.js
|
||||||
|
2
ts/typings/browser/ambient/mocha/mocha.d.ts
vendored
2
ts/typings/browser/ambient/mocha/mocha.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Compiled using typings@0.6.5
|
// Compiled using typings@0.6.8
|
||||||
// Source: https://raw.githubusercontent.com/Bartvds/tsd-deftools/master/typings/DefinitelyTyped/mocha/mocha.d.ts
|
// Source: https://raw.githubusercontent.com/Bartvds/tsd-deftools/master/typings/DefinitelyTyped/mocha/mocha.d.ts
|
||||||
// Type definitions for mocha 1.9.0
|
// Type definitions for mocha 1.9.0
|
||||||
// Project: http://visionmedia.github.io/mocha/
|
// Project: http://visionmedia.github.io/mocha/
|
||||||
|
5
ts/typings/browser/ambient/node/node.d.ts
vendored
5
ts/typings/browser/ambient/node/node.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Compiled using typings@0.6.5
|
// Compiled using typings@0.6.8
|
||||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/node/node.d.ts
|
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/node/node.d.ts
|
||||||
// Type definitions for Node.js v4.x
|
// Type definitions for Node.js v4.x
|
||||||
// Project: http://nodejs.org/
|
// Project: http://nodejs.org/
|
||||||
@ -413,6 +413,9 @@ interface NodeBuffer {
|
|||||||
************************************************/
|
************************************************/
|
||||||
declare module "buffer" {
|
declare module "buffer" {
|
||||||
export var INSPECT_MAX_BYTES: number;
|
export var INSPECT_MAX_BYTES: number;
|
||||||
|
var BuffType: typeof Buffer;
|
||||||
|
var SlowBuffType: typeof SlowBuffer;
|
||||||
|
export { BuffType as Buffer, SlowBuffType as SlowBuffer };
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "querystring" {
|
declare module "querystring" {
|
||||||
|
2
ts/typings/main/ambient/colors/colors.d.ts
vendored
2
ts/typings/main/ambient/colors/colors.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Compiled using typings@0.6.5
|
// Compiled using typings@0.6.8
|
||||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/colors/colors.d.ts
|
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/colors/colors.d.ts
|
||||||
// Type definitions for Colors.js 0.6.0-1
|
// Type definitions for Colors.js 0.6.0-1
|
||||||
// Project: https://github.com/Marak/colors.js
|
// Project: https://github.com/Marak/colors.js
|
||||||
|
2
ts/typings/main/ambient/mocha/mocha.d.ts
vendored
2
ts/typings/main/ambient/mocha/mocha.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Compiled using typings@0.6.5
|
// Compiled using typings@0.6.8
|
||||||
// Source: https://raw.githubusercontent.com/Bartvds/tsd-deftools/master/typings/DefinitelyTyped/mocha/mocha.d.ts
|
// Source: https://raw.githubusercontent.com/Bartvds/tsd-deftools/master/typings/DefinitelyTyped/mocha/mocha.d.ts
|
||||||
// Type definitions for mocha 1.9.0
|
// Type definitions for mocha 1.9.0
|
||||||
// Project: http://visionmedia.github.io/mocha/
|
// Project: http://visionmedia.github.io/mocha/
|
||||||
|
5
ts/typings/main/ambient/node/node.d.ts
vendored
5
ts/typings/main/ambient/node/node.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Compiled using typings@0.6.5
|
// Compiled using typings@0.6.8
|
||||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/node/node.d.ts
|
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/node/node.d.ts
|
||||||
// Type definitions for Node.js v4.x
|
// Type definitions for Node.js v4.x
|
||||||
// Project: http://nodejs.org/
|
// Project: http://nodejs.org/
|
||||||
@ -413,6 +413,9 @@ interface NodeBuffer {
|
|||||||
************************************************/
|
************************************************/
|
||||||
declare module "buffer" {
|
declare module "buffer" {
|
||||||
export var INSPECT_MAX_BYTES: number;
|
export var INSPECT_MAX_BYTES: number;
|
||||||
|
var BuffType: typeof Buffer;
|
||||||
|
var SlowBuffType: typeof SlowBuffer;
|
||||||
|
export { BuffType as Buffer, SlowBuffType as SlowBuffer };
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "querystring" {
|
declare module "querystring" {
|
||||||
|
Loading…
Reference in New Issue
Block a user