@@ -66,6 +66,8 @@ const Console = console.Console;
66
66
```
67
67
68
68
### new Console(stdout[ , stderr] )
69
+ * ` stdout ` {Writable}
70
+ * ` stderr ` {Writable}
69
71
70
72
Creates a new ` Console ` by passing one or two writable stream instances.
71
73
` stdout ` is a writable stream to print log or info output. ` stderr `
@@ -94,6 +96,9 @@ new Console(process.stdout, process.stderr);
94
96
<!-- YAML
95
97
added: v0.1.101
96
98
-->
99
+ * ` value ` {any}
100
+ * ` message ` {any}
101
+ * ` ...args ` {any}
97
102
98
103
A simple assertion test that verifies whether ` value ` is truthy. If it is not,
99
104
an ` AssertionError ` is thrown. If provided, the error ` message ` is formatted
@@ -155,6 +160,11 @@ console.log('this will also print');
155
160
<!-- YAML
156
161
added: v0.1.101
157
162
-->
163
+ * ` obj ` {any}
164
+ * ` options ` {Object}
165
+ * ` showHidden ` {Boolean}
166
+ * ` depth ` {Number}
167
+ * ` colors ` {Boolean}
158
168
159
169
Uses [ ` util.inspect() ` ] [ ] on ` obj ` and prints the resulting string to ` stdout ` .
160
170
This function bypasses any custom ` inspect() ` function defined on ` obj ` . An
@@ -176,6 +186,8 @@ Defaults to `false`. Colors are customizable; see
176
186
<!-- YAML
177
187
added: v0.1.100
178
188
-->
189
+ * ` data ` {any}
190
+ * ` ...args ` {any}
179
191
180
192
Prints to ` stderr ` with newline. Multiple arguments can be passed, with the
181
193
first used as the primary message and all additional used as substitution
@@ -198,13 +210,17 @@ values are concatenated. See [`util.format()`][] for more information.
198
210
<!-- YAML
199
211
added: v0.1.100
200
212
-->
213
+ * ` data ` {any}
214
+ * ` ...args ` {any}
201
215
202
216
The ` console.info() ` function is an alias for [ ` console.log() ` ] [ ] .
203
217
204
218
### console.log([ data] [ , ...args ] )
205
219
<!-- YAML
206
220
added: v0.1.100
207
221
-->
222
+ * ` data ` {any}
223
+ * ` ...args ` {any}
208
224
209
225
Prints to ` stdout ` with newline. Multiple arguments can be passed, with the
210
226
first used as the primary message and all additional used as substitution
@@ -227,6 +243,7 @@ values are concatenated. See [`util.format()`][] for more information.
227
243
<!-- YAML
228
244
added: v0.1.104
229
245
-->
246
+ * ` label ` {String}
230
247
231
248
Starts a timer that can be used to compute the duration of an operation. Timers
232
249
are identified by a unique ` label ` . Use the same ` label ` when you call
@@ -242,6 +259,7 @@ changes:
242
259
description: This method no longer supports multiple calls that don’t map
243
260
to individual `console.time()` calls; see below for details.
244
261
-->
262
+ * ` label ` {String}
245
263
246
264
Stops a timer that was previously started by calling [ ` console.time() ` ] [ ] and
247
265
prints the result to ` stdout ` :
@@ -260,10 +278,12 @@ leaking it. On older versions, the timer persisted. This allowed
260
278
` console.timeEnd() ` to be called multiple times for the same label. This
261
279
functionality was unintended and is no longer supported.*
262
280
263
- ### console.trace(message[ , ...args] )
281
+ ### console.trace([ message] [ , ...args ] )
264
282
<!-- YAML
265
283
added: v0.1.104
266
284
-->
285
+ * ` message ` {any}
286
+ * ` ...args ` {any}
267
287
268
288
Prints to ` stderr ` the string ` 'Trace :' ` , followed by the [ ` util.format() ` ] [ ]
269
289
formatted message and stack trace to the current position in the code.
@@ -288,6 +308,8 @@ console.trace('Show me');
288
308
<!-- YAML
289
309
added: v0.1.100
290
310
-->
311
+ * ` data ` {any}
312
+ * ` ...args ` {any}
291
313
292
314
The ` console.warn() ` function is an alias for [ ` console.error() ` ] [ ] .
293
315
0 commit comments