Skip to content

Commit cf08831

Browse files
committed
doc: add added: information for console
Information extracted from git history. Ref: #6578
1 parent c14e98b commit cf08831

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/api/console.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ new Console(process.stdout, process.stderr);
9797
```
9898

9999
### console.assert(value[, message][, ...])
100+
<!-- YAML
101+
added: v0.1.101
102+
-->
100103

101104
A simple assertion test that verifies whether `value` is truthy. If it is not,
102105
an `AssertionError` is thrown. If provided, the error `message` is formatted
@@ -150,6 +153,9 @@ console.log('this will also print');
150153
```
151154

152155
### console.dir(obj[, options])
156+
<!-- YAML
157+
added: v0.1.101
158+
-->
153159

154160
Uses [`util.inspect()`][] on `obj` and prints the resulting string to `stdout`.
155161
This function bypasses any custom `inspect()` function defined on `obj`. An
@@ -168,6 +174,9 @@ Defaults to `false`. Colors are customizable; see
168174
[customizing `util.inspect()` colors][].
169175

170176
### console.error([data][, ...])
177+
<!-- YAML
178+
added: v0.1.100
179+
-->
171180

172181
Prints to `stderr` with newline. Multiple arguments can be passed, with the
173182
first used as the primary message and all additional used as substitution
@@ -187,10 +196,16 @@ If formatting elements (e.g. `%d`) are not found in the first string then
187196
values are concatenated. See [`util.format()`][] for more information.
188197

189198
### console.info([data][, ...])
199+
<!-- YAML
200+
added: v0.1.100
201+
-->
190202

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

193205
### console.log([data][, ...])
206+
<!-- YAML
207+
added: v0.1.100
208+
-->
194209

195210
Prints to `stdout` with newline. Multiple arguments can be passed, with the
196211
first used as the primary message and all additional used as substitution
@@ -210,13 +225,19 @@ If formatting elements (e.g. `%d`) are not found in the first string then
210225
values are concatenated. See [`util.format()`][] for more information.
211226

212227
### console.time(label)
228+
<!-- YAML
229+
added: v0.1.104
230+
-->
213231

214232
Starts a timer that can be used to compute the duration of an operation. Timers
215233
are identified by a unique `label`. Use the same `label` when you call
216234
[`console.timeEnd()`][] to stop the timer and output the elapsed time in
217235
milliseconds to stdout. Timer durations are accurate to the sub-millisecond.
218236

219237
### console.timeEnd(label)
238+
<!-- YAML
239+
added: v0.1.104
240+
-->
220241

221242
Stops a timer that was previously started by calling [`console.time()`][] and
222243
prints the result to stdout:
@@ -236,6 +257,9 @@ leaking it. On older versions, the timer persisted. This allowed
236257
functionality was unintended and is no longer supported.*
237258

238259
### console.trace(message[, ...])
260+
<!-- YAML
261+
added: v0.1.104
262+
-->
239263

240264
Prints to `stderr` the string `'Trace :'`, followed by the [`util.format()`][]
241265
formatted message and stack trace to the current position in the code.
@@ -257,6 +281,9 @@ console.trace('Show me');
257281
```
258282

259283
### console.warn([data][, ...])
284+
<!-- YAML
285+
added: v0.1.100
286+
-->
260287

261288
The `console.warn()` function is an alias for [`console.error()`][].
262289

0 commit comments

Comments
 (0)