Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fdec6bd
doc: allow <code> in header elements
Trott Dec 23, 2019
5998523
doc,dns: use code markup/markdown in headers
Trott Dec 23, 2019
d0f9585
doc: use code markup/markdown in headers in addons documentation
Trott Dec 23, 2019
b5834a4
doc,assert: use code markup/markdown in headers
Trott Dec 23, 2019
a5eb139
doc,async_hooks: use code markup/markdown in headers
Trott Dec 23, 2019
5847a4d
doc,buffer: use code markup/markdown in headers
Trott Dec 23, 2019
19419a4
doc,child_process: use code markup/markdown in headers
Trott Dec 23, 2019
4459988
doc,cluster: use code markup/markdown in headers
Trott Dec 24, 2019
adc9fa2
doc,console: use code markup/markdown in headers
Trott Dec 24, 2019
f6b6701
doc,crypto: use code markup/markdown in headers
Trott Dec 24, 2019
8e7d61e
doc: use code markup/markdown in headers in deprecations documentation
Trott Dec 24, 2019
0c8ff7c
doc,dgram: use code markup/markdown in headers
Trott Dec 24, 2019
75ab328
doc,domain: use code markup/markdown in headers
Trott Dec 24, 2019
57f7537
doc,errors: use code markup/markdown in headers
Trott Dec 24, 2019
b3ff048
doc,esm: use code markup/markdown in headers
Trott Dec 24, 2019
36edbde
doc,events: use code markup/markdown in headers
Trott Dec 24, 2019
b407503
doc,fs: use code markup/markdown in headers
Trott Dec 24, 2019
6f5e765
doc: use code markup/markdown in headers in globals documentation
Trott Dec 24, 2019
f8795db
doc,http: use code markup/markdown in headers
Trott Dec 24, 2019
2d6949d
doc,http2: use code markup/markdown in headers
Trott Dec 24, 2019
fe4a7a2
doc,https: use code markup/markdown in headers
Trott Dec 24, 2019
fc94934
doc,inspector: use code markup/markdown in headers
Trott Dec 24, 2019
248f057
doc,module: use code markup/markdown in headers
Trott Dec 24, 2019
933fd9b
doc,net: use code markup/markdown in headers
Trott Dec 24, 2019
24f24d9
doc,os: use code markup/markdown in headers
Trott Dec 24, 2019
a70c3ab
doc,path: use code markup/markdown in headers
Trott Dec 24, 2019
c956cab
doc,perf_hooks: use code markup/markdown in headers
Trott Dec 24, 2019
fc0aa3f
doc,process: use code markup/markdown in headers
Trott Dec 24, 2019
1c33523
doc,punycode: use code markup/markdown in headers
Trott Dec 24, 2019
d592efe
doc,querystring: use code markup/markdown in headers
Trott Dec 24, 2019
8b89c89
doc,readline: use code markup/markdown in headers
Trott Dec 24, 2019
85aed3e
doc,repl: use code markup/markdown in headers
Trott Dec 24, 2019
7034a3e
doc,stream: use code markup/markdown in headers
Trott Dec 24, 2019
cdb727d
doc,string_decoder: use code markup/markdown in headers
Trott Dec 24, 2019
7bb1f47
doc,timers: use code markup/markdown in headers
Trott Dec 24, 2019
e11b327
doc,tls: use code markup/markdown in headers
Trott Dec 24, 2019
a80d4ac
doc,tty: use code markup/markdown in headers
Trott Dec 24, 2019
79f6412
doc,url: use code markup/markdown in headers
Trott Dec 24, 2019
d9004da
doc,zlib: use code markup/markdown in headers
Trott Dec 24, 2019
ff6e7a0
doc,util: use code markup/markdown in headers
Trott Dec 24, 2019
ae4cd76
doc,v8: use code markup/markdown in headers
Trott Dec 24, 2019
deb0c81
doc,worker: use code markup/markdown in headers
Trott Dec 24, 2019
257a5dd
doc,vm: use code markup/markdown in headers
Trott Dec 25, 2019
b46efa9
doc,wasi: use code markup/markdown in headers
Trott Dec 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc,console: use code markup/markdown in headers
PR-URL: #31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott committed Dec 27, 2019
commit adc9fa240e31daf689c3b4b1d90b9e3221559a6d
50 changes: 25 additions & 25 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ myConsole.warn(`Danger ${name}! Danger!`);
// Prints: Danger Will Robinson! Danger!, to err
```

## Class: Console
## Class: `Console`
<!-- YAML
changes:
- version: v8.0.0
Expand All @@ -77,8 +77,8 @@ const { Console } = require('console');
const { Console } = console;
```

### new Console(stdout\[, stderr\]\[, ignoreErrors\])
### new Console(options)
### `new Console(stdout[, stderr][, ignoreErrors])`
### `new Console(options)`
<!-- YAML
changes:
- version: v8.0.0
Expand Down Expand Up @@ -130,7 +130,7 @@ The global `console` is a special `Console` whose output is sent to
new Console({ stdout: process.stdout, stderr: process.stderr });
```

### console.assert(value\[, ...message\])
### `console.assert(value[, ...message])`
<!-- YAML
added: v0.1.101
changes:
Expand Down Expand Up @@ -158,7 +158,7 @@ console.assert(false, 'Whoops %s work', 'didn\'t');
Calling `console.assert()` with a falsy assertion will only cause the `message`
to be printed to the console without interrupting execution of subsequent code.

### console.clear()
### `console.clear()`
<!-- YAML
added: v8.3.0
-->
Expand All @@ -172,7 +172,7 @@ operates similarly to the `clear` shell command. On Windows, `console.clear()`
will clear only the output in the current terminal viewport for the Node.js
binary.

### console.count(\[label\])
### `console.count([label])`
<!-- YAML
added: v8.3.0
-->
Expand Down Expand Up @@ -205,7 +205,7 @@ undefined
>
```

### console.countReset(\[label\])
### `console.countReset([label])`
<!-- YAML
added: v8.3.0
-->
Expand All @@ -227,7 +227,7 @@ undefined
>
```

### console.debug(data\[, ...args\])
### `console.debug(data[, ...args])`
<!-- YAML
added: v8.0.0
changes:
Expand All @@ -241,7 +241,7 @@ changes:

The `console.debug()` function is an alias for [`console.log()`][].

### console.dir(obj\[, options\])
### `console.dir(obj[, options])`
<!-- YAML
added: v0.1.101
-->
Expand All @@ -260,7 +260,7 @@ added: v0.1.101
Uses [`util.inspect()`][] on `obj` and prints the resulting string to `stdout`.
This function bypasses any custom `inspect()` function defined on `obj`.

### console.dirxml(...data)
### `console.dirxml(...data)`
<!-- YAML
added: v8.0.0
changes:
Expand All @@ -274,7 +274,7 @@ changes:
This method calls `console.log()` passing it the arguments received.
This method does not produce any XML formatting.

### console.error(\[data\]\[, ...args\])
### `console.error([data][, ...args])`
<!-- YAML
added: v0.1.100
-->
Expand All @@ -299,7 +299,7 @@ If formatting elements (e.g. `%d`) are not found in the first string then
[`util.inspect()`][] is called on each argument and the resulting string
values are concatenated. See [`util.format()`][] for more information.

### console.group(\[...label\])
### `console.group([...label])`
<!-- YAML
added: v8.5.0
-->
Expand All @@ -311,21 +311,21 @@ Increases indentation of subsequent lines by two spaces.
If one or more `label`s are provided, those are printed first without the
additional indentation.

### console.groupCollapsed()
### `console.groupCollapsed()`
<!-- YAML
added: v8.5.0
-->

An alias for [`console.group()`][].

### console.groupEnd()
### `console.groupEnd()`
<!-- YAML
added: v8.5.0
-->

Decreases indentation of subsequent lines by two spaces.

### console.info(\[data\]\[, ...args\])
### `console.info([data][, ...args])`
<!-- YAML
added: v0.1.100
-->
Expand All @@ -335,7 +335,7 @@ added: v0.1.100

The `console.info()` function is an alias for [`console.log()`][].

### console.log(\[data\]\[, ...args\])
### `console.log([data][, ...args])`
<!-- YAML
added: v0.1.100
-->
Expand All @@ -358,7 +358,7 @@ console.log('count:', count);

See [`util.format()`][] for more information.

### console.table(tabularData\[, properties\])
### `console.table(tabularData[, properties])`
<!-- YAML
added: v10.0.0
-->
Expand Down Expand Up @@ -395,7 +395,7 @@ console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
// └─────────┴─────┘
```

### console.time(\[label\])
### `console.time([label])`
<!-- YAML
added: v0.1.104
-->
Expand All @@ -407,7 +407,7 @@ are identified by a unique `label`. Use the same `label` when calling
[`console.timeEnd()`][] to stop the timer and output the elapsed time in
milliseconds to `stdout`. Timer durations are accurate to the sub-millisecond.

### console.timeEnd(\[label\])
### `console.timeEnd([label])`
<!-- YAML
added: v0.1.104
changes:
Expand All @@ -429,7 +429,7 @@ console.timeEnd('100-elements');
// prints 100-elements: 225.438ms
```

### console.timeLog(\[label\]\[, ...data\])
### `console.timeLog([label][, ...data])`
<!-- YAML
added: v10.7.0
-->
Expand All @@ -449,7 +449,7 @@ doExpensiveProcess2(value);
console.timeEnd('process');
```

### console.trace(\[message\]\[, ...args\])
### `console.trace([message][, ...args])`
<!-- YAML
added: v0.1.104
-->
Expand All @@ -476,7 +476,7 @@ console.trace('Show me');
// at REPLServer.Interface._ttyWrite (readline.js:826:14)
```

### console.warn(\[data\]\[, ...args\])
### `console.warn([data][, ...args])`
<!-- YAML
added: v0.1.100
-->
Expand All @@ -491,7 +491,7 @@ The following methods are exposed by the V8 engine in the general API but do
not display anything unless used in conjunction with the [inspector][]
(`--inspect` flag).

### console.profile(\[label\])
### `console.profile([label])`
<!-- YAML
added: v8.0.0
-->
Expand All @@ -510,7 +510,7 @@ console.profileEnd('MyLabel');
// Adds the profile 'MyLabel' to the Profiles panel of the inspector.
```

### console.profileEnd(\[label\])
### `console.profileEnd([label])`
<!-- YAML
added: v8.0.0
-->
Expand All @@ -525,7 +525,7 @@ the report to the **Profiles** panel of the inspector. See
If this method is called without a label, the most recently started profile is
stopped.

### console.timeStamp(\[label\])
### `console.timeStamp([label])`
<!-- YAML
added: v8.0.0
-->
Expand Down