@@ -54,7 +54,7 @@ myConsole.warn(`Danger ${name}! Danger!`);
54
54
// Prints: Danger Will Robinson! Danger!, to err
55
55
```
56
56
57
- ## Class: Console
57
+ ## Class: ` Console `
58
58
<!-- YAML
59
59
changes:
60
60
- version: v8.0.0
@@ -77,8 +77,8 @@ const { Console } = require('console');
77
77
const { Console } = console ;
78
78
```
79
79
80
- ### new Console(stdout\ [ , stderr\]\ [ , ignoreErrors\] )
81
- ### new Console(options)
80
+ ### ` new Console(stdout[, stderr] [, ignoreErrors]) `
81
+ ### ` new Console(options) `
82
82
<!-- YAML
83
83
changes:
84
84
- version: v8.0.0
@@ -130,7 +130,7 @@ The global `console` is a special `Console` whose output is sent to
130
130
new Console ({ stdout: process .stdout , stderr: process .stderr });
131
131
```
132
132
133
- ### console.assert(value\ [ , ...message\] )
133
+ ### ` console.assert(value[, ...message]) `
134
134
<!-- YAML
135
135
added: v0.1.101
136
136
changes:
@@ -158,7 +158,7 @@ console.assert(false, 'Whoops %s work', 'didn\'t');
158
158
Calling ` console.assert() ` with a falsy assertion will only cause the ` message `
159
159
to be printed to the console without interrupting execution of subsequent code.
160
160
161
- ### console.clear()
161
+ ### ` console.clear() `
162
162
<!-- YAML
163
163
added: v8.3.0
164
164
-->
@@ -172,7 +172,7 @@ operates similarly to the `clear` shell command. On Windows, `console.clear()`
172
172
will clear only the output in the current terminal viewport for the Node.js
173
173
binary.
174
174
175
- ### console.count(\ [ label\] )
175
+ ### ` console.count([label]) `
176
176
<!-- YAML
177
177
added: v8.3.0
178
178
-->
@@ -205,7 +205,7 @@ undefined
205
205
>
206
206
```
207
207
208
- ### console.countReset(\ [ label\] )
208
+ ### ` console.countReset([label]) `
209
209
<!-- YAML
210
210
added: v8.3.0
211
211
-->
@@ -227,7 +227,7 @@ undefined
227
227
>
228
228
```
229
229
230
- ### console.debug(data\ [ , ...args\] )
230
+ ### ` console.debug(data[, ...args]) `
231
231
<!-- YAML
232
232
added: v8.0.0
233
233
changes:
@@ -241,7 +241,7 @@ changes:
241
241
242
242
The ` console.debug() ` function is an alias for [ ` console.log() ` ] [ ] .
243
243
244
- ### console.dir(obj\ [ , options\] )
244
+ ### ` console.dir(obj[, options]) `
245
245
<!-- YAML
246
246
added: v0.1.101
247
247
-->
@@ -260,7 +260,7 @@ added: v0.1.101
260
260
Uses [ ` util.inspect() ` ] [ ] on ` obj ` and prints the resulting string to ` stdout ` .
261
261
This function bypasses any custom ` inspect() ` function defined on ` obj ` .
262
262
263
- ### console.dirxml(...data)
263
+ ### ` console.dirxml(...data) `
264
264
<!-- YAML
265
265
added: v8.0.0
266
266
changes:
@@ -274,7 +274,7 @@ changes:
274
274
This method calls ` console.log() ` passing it the arguments received.
275
275
This method does not produce any XML formatting.
276
276
277
- ### console.error(\ [ data\]\ [ , ...args\] )
277
+ ### ` console.error([data] [, ...args]) `
278
278
<!-- YAML
279
279
added: v0.1.100
280
280
-->
@@ -299,7 +299,7 @@ If formatting elements (e.g. `%d`) are not found in the first string then
299
299
[ ` util.inspect() ` ] [ ] is called on each argument and the resulting string
300
300
values are concatenated. See [ ` util.format() ` ] [ ] for more information.
301
301
302
- ### console.group(\ [ ...label\] )
302
+ ### ` console.group([...label]) `
303
303
<!-- YAML
304
304
added: v8.5.0
305
305
-->
@@ -311,21 +311,21 @@ Increases indentation of subsequent lines by two spaces.
311
311
If one or more ` label ` s are provided, those are printed first without the
312
312
additional indentation.
313
313
314
- ### console.groupCollapsed()
314
+ ### ` console.groupCollapsed() `
315
315
<!-- YAML
316
316
added: v8.5.0
317
317
-->
318
318
319
319
An alias for [ ` console.group() ` ] [ ] .
320
320
321
- ### console.groupEnd()
321
+ ### ` console.groupEnd() `
322
322
<!-- YAML
323
323
added: v8.5.0
324
324
-->
325
325
326
326
Decreases indentation of subsequent lines by two spaces.
327
327
328
- ### console.info(\ [ data\]\ [ , ...args\] )
328
+ ### ` console.info([data] [, ...args]) `
329
329
<!-- YAML
330
330
added: v0.1.100
331
331
-->
@@ -335,7 +335,7 @@ added: v0.1.100
335
335
336
336
The ` console.info() ` function is an alias for [ ` console.log() ` ] [ ] .
337
337
338
- ### console.log(\ [ data\]\ [ , ...args\] )
338
+ ### ` console.log([data] [, ...args]) `
339
339
<!-- YAML
340
340
added: v0.1.100
341
341
-->
@@ -358,7 +358,7 @@ console.log('count:', count);
358
358
359
359
See [ ` util.format() ` ] [ ] for more information.
360
360
361
- ### console.table(tabularData\ [ , properties\] )
361
+ ### ` console.table(tabularData[, properties]) `
362
362
<!-- YAML
363
363
added: v10.0.0
364
364
-->
@@ -395,7 +395,7 @@ console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
395
395
// └─────────┴─────┘
396
396
```
397
397
398
- ### console.time(\ [ label\] )
398
+ ### ` console.time([label]) `
399
399
<!-- YAML
400
400
added: v0.1.104
401
401
-->
@@ -407,7 +407,7 @@ are identified by a unique `label`. Use the same `label` when calling
407
407
[ ` console.timeEnd() ` ] [ ] to stop the timer and output the elapsed time in
408
408
milliseconds to ` stdout ` . Timer durations are accurate to the sub-millisecond.
409
409
410
- ### console.timeEnd(\ [ label\] )
410
+ ### ` console.timeEnd([label]) `
411
411
<!-- YAML
412
412
added: v0.1.104
413
413
changes:
@@ -429,7 +429,7 @@ console.timeEnd('100-elements');
429
429
// prints 100-elements: 225.438ms
430
430
```
431
431
432
- ### console.timeLog(\ [ label\]\ [ , ...data\] )
432
+ ### ` console.timeLog([label] [, ...data]) `
433
433
<!-- YAML
434
434
added: v10.7.0
435
435
-->
@@ -449,7 +449,7 @@ doExpensiveProcess2(value);
449
449
console .timeEnd (' process' );
450
450
```
451
451
452
- ### console.trace(\ [ message\]\ [ , ...args\] )
452
+ ### ` console.trace([message] [, ...args]) `
453
453
<!-- YAML
454
454
added: v0.1.104
455
455
-->
@@ -476,7 +476,7 @@ console.trace('Show me');
476
476
// at REPLServer.Interface._ttyWrite (readline.js:826:14)
477
477
```
478
478
479
- ### console.warn(\ [ data\]\ [ , ...args\] )
479
+ ### ` console.warn([data] [, ...args]) `
480
480
<!-- YAML
481
481
added: v0.1.100
482
482
-->
@@ -491,7 +491,7 @@ The following methods are exposed by the V8 engine in the general API but do
491
491
not display anything unless used in conjunction with the [ inspector] [ ]
492
492
(` --inspect ` flag).
493
493
494
- ### console.profile(\ [ label\] )
494
+ ### ` console.profile([label]) `
495
495
<!-- YAML
496
496
added: v8.0.0
497
497
-->
@@ -510,7 +510,7 @@ console.profileEnd('MyLabel');
510
510
// Adds the profile 'MyLabel' to the Profiles panel of the inspector.
511
511
```
512
512
513
- ### console.profileEnd(\ [ label\] )
513
+ ### ` console.profileEnd([label]) `
514
514
<!-- YAML
515
515
added: v8.0.0
516
516
-->
@@ -525,7 +525,7 @@ the report to the **Profiles** panel of the inspector. See
525
525
If this method is called without a label, the most recently started profile is
526
526
stopped.
527
527
528
- ### console.timeStamp(\ [ label\] )
528
+ ### ` console.timeStamp([label]) `
529
529
<!-- YAML
530
530
added: v8.0.0
531
531
-->
0 commit comments