11cb0ef41Sopenharmony_ci{
21cb0ef41Sopenharmony_ci  "type": "module",
31cb0ef41Sopenharmony_ci  "source": "doc/api/console.md",
41cb0ef41Sopenharmony_ci  "modules": [
51cb0ef41Sopenharmony_ci    {
61cb0ef41Sopenharmony_ci      "textRaw": "Console",
71cb0ef41Sopenharmony_ci      "name": "console",
81cb0ef41Sopenharmony_ci      "introduced_in": "v0.10.13",
91cb0ef41Sopenharmony_ci      "stability": 2,
101cb0ef41Sopenharmony_ci      "stabilityText": "Stable",
111cb0ef41Sopenharmony_ci      "desc": "<p><strong>Source Code:</strong> <a href=\"https://github.com/nodejs/node/blob/v18.20.1/lib/console.js\">lib/console.js</a></p>\n<p>The <code>node:console</code> module provides a simple debugging console that is similar to\nthe JavaScript console mechanism provided by web browsers.</p>\n<p>The module exports two specific components:</p>\n<ul>\n<li>A <code>Console</code> class with methods such as <code>console.log()</code>, <code>console.error()</code>, and\n<code>console.warn()</code> that can be used to write to any Node.js stream.</li>\n<li>A global <code>console</code> instance configured to write to <a href=\"process.html#processstdout\"><code>process.stdout</code></a> and\n<a href=\"process.html#processstderr\"><code>process.stderr</code></a>. The global <code>console</code> can be used without calling\n<code>require('node:console')</code>.</li>\n</ul>\n<p><em><strong>Warning</strong></em>: The global console object's methods are neither consistently\nsynchronous like the browser APIs they resemble, nor are they consistently\nasynchronous like all other Node.js streams. See the <a href=\"process.html#a-note-on-process-io\">note on process I/O</a> for\nmore information.</p>\n<p>Example using the global <code>console</code>:</p>\n<pre><code class=\"language-js\">console.log('hello world');\n// Prints: hello world, to stdout\nconsole.log('hello %s', 'world');\n// Prints: hello world, to stdout\nconsole.error(new Error('Whoops, something bad happened'));\n// Prints error message and stack trace to stderr:\n//   Error: Whoops, something bad happened\n//     at [eval]:5:15\n//     at Script.runInThisContext (node:vm:132:18)\n//     at Object.runInThisContext (node:vm:309:38)\n//     at node:internal/process/execution:77:19\n//     at [eval]-wrapper:6:22\n//     at evalScript (node:internal/process/execution:76:60)\n//     at node:internal/main/eval_string:23:3\n\nconst name = 'Will Robinson';\nconsole.warn(`Danger ${name}! Danger!`);\n// Prints: Danger Will Robinson! Danger!, to stderr\n</code></pre>\n<p>Example using the <code>Console</code> class:</p>\n<pre><code class=\"language-js\">const out = getStreamSomehow();\nconst err = getStreamSomehow();\nconst myConsole = new console.Console(out, err);\n\nmyConsole.log('hello world');\n// Prints: hello world, to out\nmyConsole.log('hello %s', 'world');\n// Prints: hello world, to out\nmyConsole.error(new Error('Whoops, something bad happened'));\n// Prints: [Error: Whoops, something bad happened], to err\n\nconst name = 'Will Robinson';\nmyConsole.warn(`Danger ${name}! Danger!`);\n// Prints: Danger Will Robinson! Danger!, to err\n</code></pre>",
121cb0ef41Sopenharmony_ci      "classes": [
131cb0ef41Sopenharmony_ci        {
141cb0ef41Sopenharmony_ci          "textRaw": "Class: `Console`",
151cb0ef41Sopenharmony_ci          "type": "class",
161cb0ef41Sopenharmony_ci          "name": "Console",
171cb0ef41Sopenharmony_ci          "meta": {
181cb0ef41Sopenharmony_ci            "changes": [
191cb0ef41Sopenharmony_ci              {
201cb0ef41Sopenharmony_ci                "version": "v8.0.0",
211cb0ef41Sopenharmony_ci                "pr-url": "https://github.com/nodejs/node/pull/9744",
221cb0ef41Sopenharmony_ci                "description": "Errors that occur while writing to the underlying streams will now be ignored by default."
231cb0ef41Sopenharmony_ci              }
241cb0ef41Sopenharmony_ci            ]
251cb0ef41Sopenharmony_ci          },
261cb0ef41Sopenharmony_ci          "desc": "<p>The <code>Console</code> class can be used to create a simple logger with configurable\noutput streams and can be accessed using either <code>require('node:console').Console</code>\nor <code>console.Console</code> (or their destructured counterparts):</p>\n<pre><code class=\"language-js\">const { Console } = require('node:console');\n</code></pre>\n<pre><code class=\"language-js\">const { Console } = console;\n</code></pre>",
271cb0ef41Sopenharmony_ci          "methods": [
281cb0ef41Sopenharmony_ci            {
291cb0ef41Sopenharmony_ci              "textRaw": "`console.assert(value[, ...message])`",
301cb0ef41Sopenharmony_ci              "type": "method",
311cb0ef41Sopenharmony_ci              "name": "assert",
321cb0ef41Sopenharmony_ci              "meta": {
331cb0ef41Sopenharmony_ci                "added": [
341cb0ef41Sopenharmony_ci                  "v0.1.101"
351cb0ef41Sopenharmony_ci                ],
361cb0ef41Sopenharmony_ci                "changes": [
371cb0ef41Sopenharmony_ci                  {
381cb0ef41Sopenharmony_ci                    "version": "v10.0.0",
391cb0ef41Sopenharmony_ci                    "pr-url": "https://github.com/nodejs/node/pull/17706",
401cb0ef41Sopenharmony_ci                    "description": "The implementation is now spec compliant and does not throw anymore."
411cb0ef41Sopenharmony_ci                  }
421cb0ef41Sopenharmony_ci                ]
431cb0ef41Sopenharmony_ci              },
441cb0ef41Sopenharmony_ci              "signatures": [
451cb0ef41Sopenharmony_ci                {
461cb0ef41Sopenharmony_ci                  "params": [
471cb0ef41Sopenharmony_ci                    {
481cb0ef41Sopenharmony_ci                      "textRaw": "`value` {any} The value tested for being truthy.",
491cb0ef41Sopenharmony_ci                      "name": "value",
501cb0ef41Sopenharmony_ci                      "type": "any",
511cb0ef41Sopenharmony_ci                      "desc": "The value tested for being truthy."
521cb0ef41Sopenharmony_ci                    },
531cb0ef41Sopenharmony_ci                    {
541cb0ef41Sopenharmony_ci                      "textRaw": "`...message` {any} All arguments besides `value` are used as error message.",
551cb0ef41Sopenharmony_ci                      "name": "...message",
561cb0ef41Sopenharmony_ci                      "type": "any",
571cb0ef41Sopenharmony_ci                      "desc": "All arguments besides `value` are used as error message."
581cb0ef41Sopenharmony_ci                    }
591cb0ef41Sopenharmony_ci                  ]
601cb0ef41Sopenharmony_ci                }
611cb0ef41Sopenharmony_ci              ],
621cb0ef41Sopenharmony_ci              "desc": "<p><code>console.assert()</code> writes a message if <code>value</code> is <a href=\"https://developer.mozilla.org/en-US/docs/Glossary/Falsy\">falsy</a> or omitted. It only\nwrites a message and does not otherwise affect execution. The output always\nstarts with <code>\"Assertion failed\"</code>. If provided, <code>message</code> is formatted using\n<a href=\"util.html#utilformatformat-args\"><code>util.format()</code></a>.</p>\n<p>If <code>value</code> is <a href=\"https://developer.mozilla.org/en-US/docs/Glossary/Truthy\">truthy</a>, nothing happens.</p>\n<pre><code class=\"language-js\">console.assert(true, 'does nothing');\n\nconsole.assert(false, 'Whoops %s work', 'didn\\'t');\n// Assertion failed: Whoops didn't work\n\nconsole.assert();\n// Assertion failed\n</code></pre>"
631cb0ef41Sopenharmony_ci            },
641cb0ef41Sopenharmony_ci            {
651cb0ef41Sopenharmony_ci              "textRaw": "`console.clear()`",
661cb0ef41Sopenharmony_ci              "type": "method",
671cb0ef41Sopenharmony_ci              "name": "clear",
681cb0ef41Sopenharmony_ci              "meta": {
691cb0ef41Sopenharmony_ci                "added": [
701cb0ef41Sopenharmony_ci                  "v8.3.0"
711cb0ef41Sopenharmony_ci                ],
721cb0ef41Sopenharmony_ci                "changes": []
731cb0ef41Sopenharmony_ci              },
741cb0ef41Sopenharmony_ci              "signatures": [
751cb0ef41Sopenharmony_ci                {
761cb0ef41Sopenharmony_ci                  "params": []
771cb0ef41Sopenharmony_ci                }
781cb0ef41Sopenharmony_ci              ],
791cb0ef41Sopenharmony_ci              "desc": "<p>When <code>stdout</code> is a TTY, calling <code>console.clear()</code> will attempt to clear the\nTTY. When <code>stdout</code> is not a TTY, this method does nothing.</p>\n<p>The specific operation of <code>console.clear()</code> can vary across operating systems\nand terminal types. For most Linux operating systems, <code>console.clear()</code>\noperates similarly to the <code>clear</code> shell command. On Windows, <code>console.clear()</code>\nwill clear only the output in the current terminal viewport for the Node.js\nbinary.</p>"
801cb0ef41Sopenharmony_ci            },
811cb0ef41Sopenharmony_ci            {
821cb0ef41Sopenharmony_ci              "textRaw": "`console.count([label])`",
831cb0ef41Sopenharmony_ci              "type": "method",
841cb0ef41Sopenharmony_ci              "name": "count",
851cb0ef41Sopenharmony_ci              "meta": {
861cb0ef41Sopenharmony_ci                "added": [
871cb0ef41Sopenharmony_ci                  "v8.3.0"
881cb0ef41Sopenharmony_ci                ],
891cb0ef41Sopenharmony_ci                "changes": []
901cb0ef41Sopenharmony_ci              },
911cb0ef41Sopenharmony_ci              "signatures": [
921cb0ef41Sopenharmony_ci                {
931cb0ef41Sopenharmony_ci                  "params": [
941cb0ef41Sopenharmony_ci                    {
951cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string} The display label for the counter. **Default:** `'default'`.",
961cb0ef41Sopenharmony_ci                      "name": "label",
971cb0ef41Sopenharmony_ci                      "type": "string",
981cb0ef41Sopenharmony_ci                      "default": "`'default'`",
991cb0ef41Sopenharmony_ci                      "desc": "The display label for the counter."
1001cb0ef41Sopenharmony_ci                    }
1011cb0ef41Sopenharmony_ci                  ]
1021cb0ef41Sopenharmony_ci                }
1031cb0ef41Sopenharmony_ci              ],
1041cb0ef41Sopenharmony_ci              "desc": "<p>Maintains an internal counter specific to <code>label</code> and outputs to <code>stdout</code> the\nnumber of times <code>console.count()</code> has been called with the given <code>label</code>.</p>\n<!-- eslint-skip -->\n<pre><code class=\"language-js\">> console.count()\ndefault: 1\nundefined\n> console.count('default')\ndefault: 2\nundefined\n> console.count('abc')\nabc: 1\nundefined\n> console.count('xyz')\nxyz: 1\nundefined\n> console.count('abc')\nabc: 2\nundefined\n> console.count()\ndefault: 3\nundefined\n>\n</code></pre>"
1051cb0ef41Sopenharmony_ci            },
1061cb0ef41Sopenharmony_ci            {
1071cb0ef41Sopenharmony_ci              "textRaw": "`console.countReset([label])`",
1081cb0ef41Sopenharmony_ci              "type": "method",
1091cb0ef41Sopenharmony_ci              "name": "countReset",
1101cb0ef41Sopenharmony_ci              "meta": {
1111cb0ef41Sopenharmony_ci                "added": [
1121cb0ef41Sopenharmony_ci                  "v8.3.0"
1131cb0ef41Sopenharmony_ci                ],
1141cb0ef41Sopenharmony_ci                "changes": []
1151cb0ef41Sopenharmony_ci              },
1161cb0ef41Sopenharmony_ci              "signatures": [
1171cb0ef41Sopenharmony_ci                {
1181cb0ef41Sopenharmony_ci                  "params": [
1191cb0ef41Sopenharmony_ci                    {
1201cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string} The display label for the counter. **Default:** `'default'`.",
1211cb0ef41Sopenharmony_ci                      "name": "label",
1221cb0ef41Sopenharmony_ci                      "type": "string",
1231cb0ef41Sopenharmony_ci                      "default": "`'default'`",
1241cb0ef41Sopenharmony_ci                      "desc": "The display label for the counter."
1251cb0ef41Sopenharmony_ci                    }
1261cb0ef41Sopenharmony_ci                  ]
1271cb0ef41Sopenharmony_ci                }
1281cb0ef41Sopenharmony_ci              ],
1291cb0ef41Sopenharmony_ci              "desc": "<p>Resets the internal counter specific to <code>label</code>.</p>\n<!-- eslint-skip -->\n<pre><code class=\"language-js\">> console.count('abc');\nabc: 1\nundefined\n> console.countReset('abc');\nundefined\n> console.count('abc');\nabc: 1\nundefined\n>\n</code></pre>"
1301cb0ef41Sopenharmony_ci            },
1311cb0ef41Sopenharmony_ci            {
1321cb0ef41Sopenharmony_ci              "textRaw": "`console.debug(data[, ...args])`",
1331cb0ef41Sopenharmony_ci              "type": "method",
1341cb0ef41Sopenharmony_ci              "name": "debug",
1351cb0ef41Sopenharmony_ci              "meta": {
1361cb0ef41Sopenharmony_ci                "added": [
1371cb0ef41Sopenharmony_ci                  "v8.0.0"
1381cb0ef41Sopenharmony_ci                ],
1391cb0ef41Sopenharmony_ci                "changes": [
1401cb0ef41Sopenharmony_ci                  {
1411cb0ef41Sopenharmony_ci                    "version": "v8.10.0",
1421cb0ef41Sopenharmony_ci                    "pr-url": "https://github.com/nodejs/node/pull/17033",
1431cb0ef41Sopenharmony_ci                    "description": "`console.debug` is now an alias for `console.log`."
1441cb0ef41Sopenharmony_ci                  }
1451cb0ef41Sopenharmony_ci                ]
1461cb0ef41Sopenharmony_ci              },
1471cb0ef41Sopenharmony_ci              "signatures": [
1481cb0ef41Sopenharmony_ci                {
1491cb0ef41Sopenharmony_ci                  "params": [
1501cb0ef41Sopenharmony_ci                    {
1511cb0ef41Sopenharmony_ci                      "textRaw": "`data` {any}",
1521cb0ef41Sopenharmony_ci                      "name": "data",
1531cb0ef41Sopenharmony_ci                      "type": "any"
1541cb0ef41Sopenharmony_ci                    },
1551cb0ef41Sopenharmony_ci                    {
1561cb0ef41Sopenharmony_ci                      "textRaw": "`...args` {any}",
1571cb0ef41Sopenharmony_ci                      "name": "...args",
1581cb0ef41Sopenharmony_ci                      "type": "any"
1591cb0ef41Sopenharmony_ci                    }
1601cb0ef41Sopenharmony_ci                  ]
1611cb0ef41Sopenharmony_ci                }
1621cb0ef41Sopenharmony_ci              ],
1631cb0ef41Sopenharmony_ci              "desc": "<p>The <code>console.debug()</code> function is an alias for <a href=\"#consolelogdata-args\"><code>console.log()</code></a>.</p>"
1641cb0ef41Sopenharmony_ci            },
1651cb0ef41Sopenharmony_ci            {
1661cb0ef41Sopenharmony_ci              "textRaw": "`console.dir(obj[, options])`",
1671cb0ef41Sopenharmony_ci              "type": "method",
1681cb0ef41Sopenharmony_ci              "name": "dir",
1691cb0ef41Sopenharmony_ci              "meta": {
1701cb0ef41Sopenharmony_ci                "added": [
1711cb0ef41Sopenharmony_ci                  "v0.1.101"
1721cb0ef41Sopenharmony_ci                ],
1731cb0ef41Sopenharmony_ci                "changes": []
1741cb0ef41Sopenharmony_ci              },
1751cb0ef41Sopenharmony_ci              "signatures": [
1761cb0ef41Sopenharmony_ci                {
1771cb0ef41Sopenharmony_ci                  "params": [
1781cb0ef41Sopenharmony_ci                    {
1791cb0ef41Sopenharmony_ci                      "textRaw": "`obj` {any}",
1801cb0ef41Sopenharmony_ci                      "name": "obj",
1811cb0ef41Sopenharmony_ci                      "type": "any"
1821cb0ef41Sopenharmony_ci                    },
1831cb0ef41Sopenharmony_ci                    {
1841cb0ef41Sopenharmony_ci                      "textRaw": "`options` {Object}",
1851cb0ef41Sopenharmony_ci                      "name": "options",
1861cb0ef41Sopenharmony_ci                      "type": "Object",
1871cb0ef41Sopenharmony_ci                      "options": [
1881cb0ef41Sopenharmony_ci                        {
1891cb0ef41Sopenharmony_ci                          "textRaw": "`showHidden` {boolean} If `true` then the object's non-enumerable and symbol properties will be shown too. **Default:** `false`.",
1901cb0ef41Sopenharmony_ci                          "name": "showHidden",
1911cb0ef41Sopenharmony_ci                          "type": "boolean",
1921cb0ef41Sopenharmony_ci                          "default": "`false`",
1931cb0ef41Sopenharmony_ci                          "desc": "If `true` then the object's non-enumerable and symbol properties will be shown too."
1941cb0ef41Sopenharmony_ci                        },
1951cb0ef41Sopenharmony_ci                        {
1961cb0ef41Sopenharmony_ci                          "textRaw": "`depth` {number} Tells [`util.inspect()`][] how many times to recurse while formatting the object. This is useful for inspecting large complicated objects. To make it recurse indefinitely, pass `null`. **Default:** `2`.",
1971cb0ef41Sopenharmony_ci                          "name": "depth",
1981cb0ef41Sopenharmony_ci                          "type": "number",
1991cb0ef41Sopenharmony_ci                          "default": "`2`",
2001cb0ef41Sopenharmony_ci                          "desc": "Tells [`util.inspect()`][] how many times to recurse while formatting the object. This is useful for inspecting large complicated objects. To make it recurse indefinitely, pass `null`."
2011cb0ef41Sopenharmony_ci                        },
2021cb0ef41Sopenharmony_ci                        {
2031cb0ef41Sopenharmony_ci                          "textRaw": "`colors` {boolean} If `true`, then the output will be styled with ANSI color codes. Colors are customizable; see [customizing `util.inspect()` colors][]. **Default:** `false`.",
2041cb0ef41Sopenharmony_ci                          "name": "colors",
2051cb0ef41Sopenharmony_ci                          "type": "boolean",
2061cb0ef41Sopenharmony_ci                          "default": "`false`",
2071cb0ef41Sopenharmony_ci                          "desc": "If `true`, then the output will be styled with ANSI color codes. Colors are customizable; see [customizing `util.inspect()` colors][]."
2081cb0ef41Sopenharmony_ci                        }
2091cb0ef41Sopenharmony_ci                      ]
2101cb0ef41Sopenharmony_ci                    }
2111cb0ef41Sopenharmony_ci                  ]
2121cb0ef41Sopenharmony_ci                }
2131cb0ef41Sopenharmony_ci              ],
2141cb0ef41Sopenharmony_ci              "desc": "<p>Uses <a href=\"util.html#utilinspectobject-options\"><code>util.inspect()</code></a> on <code>obj</code> and prints the resulting string to <code>stdout</code>.\nThis function bypasses any custom <code>inspect()</code> function defined on <code>obj</code>.</p>"
2151cb0ef41Sopenharmony_ci            },
2161cb0ef41Sopenharmony_ci            {
2171cb0ef41Sopenharmony_ci              "textRaw": "`console.dirxml(...data)`",
2181cb0ef41Sopenharmony_ci              "type": "method",
2191cb0ef41Sopenharmony_ci              "name": "dirxml",
2201cb0ef41Sopenharmony_ci              "meta": {
2211cb0ef41Sopenharmony_ci                "added": [
2221cb0ef41Sopenharmony_ci                  "v8.0.0"
2231cb0ef41Sopenharmony_ci                ],
2241cb0ef41Sopenharmony_ci                "changes": [
2251cb0ef41Sopenharmony_ci                  {
2261cb0ef41Sopenharmony_ci                    "version": "v9.3.0",
2271cb0ef41Sopenharmony_ci                    "pr-url": "https://github.com/nodejs/node/pull/17152",
2281cb0ef41Sopenharmony_ci                    "description": "`console.dirxml` now calls `console.log` for its arguments."
2291cb0ef41Sopenharmony_ci                  }
2301cb0ef41Sopenharmony_ci                ]
2311cb0ef41Sopenharmony_ci              },
2321cb0ef41Sopenharmony_ci              "signatures": [
2331cb0ef41Sopenharmony_ci                {
2341cb0ef41Sopenharmony_ci                  "params": [
2351cb0ef41Sopenharmony_ci                    {
2361cb0ef41Sopenharmony_ci                      "textRaw": "`...data` {any}",
2371cb0ef41Sopenharmony_ci                      "name": "...data",
2381cb0ef41Sopenharmony_ci                      "type": "any"
2391cb0ef41Sopenharmony_ci                    }
2401cb0ef41Sopenharmony_ci                  ]
2411cb0ef41Sopenharmony_ci                }
2421cb0ef41Sopenharmony_ci              ],
2431cb0ef41Sopenharmony_ci              "desc": "<p>This method calls <code>console.log()</code> passing it the arguments received.\nThis method does not produce any XML formatting.</p>"
2441cb0ef41Sopenharmony_ci            },
2451cb0ef41Sopenharmony_ci            {
2461cb0ef41Sopenharmony_ci              "textRaw": "`console.error([data][, ...args])`",
2471cb0ef41Sopenharmony_ci              "type": "method",
2481cb0ef41Sopenharmony_ci              "name": "error",
2491cb0ef41Sopenharmony_ci              "meta": {
2501cb0ef41Sopenharmony_ci                "added": [
2511cb0ef41Sopenharmony_ci                  "v0.1.100"
2521cb0ef41Sopenharmony_ci                ],
2531cb0ef41Sopenharmony_ci                "changes": []
2541cb0ef41Sopenharmony_ci              },
2551cb0ef41Sopenharmony_ci              "signatures": [
2561cb0ef41Sopenharmony_ci                {
2571cb0ef41Sopenharmony_ci                  "params": [
2581cb0ef41Sopenharmony_ci                    {
2591cb0ef41Sopenharmony_ci                      "textRaw": "`data` {any}",
2601cb0ef41Sopenharmony_ci                      "name": "data",
2611cb0ef41Sopenharmony_ci                      "type": "any"
2621cb0ef41Sopenharmony_ci                    },
2631cb0ef41Sopenharmony_ci                    {
2641cb0ef41Sopenharmony_ci                      "textRaw": "`...args` {any}",
2651cb0ef41Sopenharmony_ci                      "name": "...args",
2661cb0ef41Sopenharmony_ci                      "type": "any"
2671cb0ef41Sopenharmony_ci                    }
2681cb0ef41Sopenharmony_ci                  ]
2691cb0ef41Sopenharmony_ci                }
2701cb0ef41Sopenharmony_ci              ],
2711cb0ef41Sopenharmony_ci              "desc": "<p>Prints to <code>stderr</code> with newline. Multiple arguments can be passed, with the\nfirst used as the primary message and all additional used as substitution\nvalues similar to <a href=\"http://man7.org/linux/man-pages/man3/printf.3.html\"><code>printf(3)</code></a> (the arguments are all passed to\n<a href=\"util.html#utilformatformat-args\"><code>util.format()</code></a>).</p>\n<pre><code class=\"language-js\">const code = 5;\nconsole.error('error #%d', code);\n// Prints: error #5, to stderr\nconsole.error('error', code);\n// Prints: error 5, to stderr\n</code></pre>\n<p>If formatting elements (e.g. <code>%d</code>) are not found in the first string then\n<a href=\"util.html#utilinspectobject-options\"><code>util.inspect()</code></a> is called on each argument and the resulting string\nvalues are concatenated. See <a href=\"util.html#utilformatformat-args\"><code>util.format()</code></a> for more information.</p>"
2721cb0ef41Sopenharmony_ci            },
2731cb0ef41Sopenharmony_ci            {
2741cb0ef41Sopenharmony_ci              "textRaw": "`console.group([...label])`",
2751cb0ef41Sopenharmony_ci              "type": "method",
2761cb0ef41Sopenharmony_ci              "name": "group",
2771cb0ef41Sopenharmony_ci              "meta": {
2781cb0ef41Sopenharmony_ci                "added": [
2791cb0ef41Sopenharmony_ci                  "v8.5.0"
2801cb0ef41Sopenharmony_ci                ],
2811cb0ef41Sopenharmony_ci                "changes": []
2821cb0ef41Sopenharmony_ci              },
2831cb0ef41Sopenharmony_ci              "signatures": [
2841cb0ef41Sopenharmony_ci                {
2851cb0ef41Sopenharmony_ci                  "params": [
2861cb0ef41Sopenharmony_ci                    {
2871cb0ef41Sopenharmony_ci                      "textRaw": "`...label` {any}",
2881cb0ef41Sopenharmony_ci                      "name": "...label",
2891cb0ef41Sopenharmony_ci                      "type": "any"
2901cb0ef41Sopenharmony_ci                    }
2911cb0ef41Sopenharmony_ci                  ]
2921cb0ef41Sopenharmony_ci                }
2931cb0ef41Sopenharmony_ci              ],
2941cb0ef41Sopenharmony_ci              "desc": "<p>Increases indentation of subsequent lines by spaces for <code>groupIndentation</code>\nlength.</p>\n<p>If one or more <code>label</code>s are provided, those are printed first without the\nadditional indentation.</p>"
2951cb0ef41Sopenharmony_ci            },
2961cb0ef41Sopenharmony_ci            {
2971cb0ef41Sopenharmony_ci              "textRaw": "`console.groupCollapsed()`",
2981cb0ef41Sopenharmony_ci              "type": "method",
2991cb0ef41Sopenharmony_ci              "name": "groupCollapsed",
3001cb0ef41Sopenharmony_ci              "meta": {
3011cb0ef41Sopenharmony_ci                "added": [
3021cb0ef41Sopenharmony_ci                  "v8.5.0"
3031cb0ef41Sopenharmony_ci                ],
3041cb0ef41Sopenharmony_ci                "changes": []
3051cb0ef41Sopenharmony_ci              },
3061cb0ef41Sopenharmony_ci              "signatures": [
3071cb0ef41Sopenharmony_ci                {
3081cb0ef41Sopenharmony_ci                  "params": []
3091cb0ef41Sopenharmony_ci                }
3101cb0ef41Sopenharmony_ci              ],
3111cb0ef41Sopenharmony_ci              "desc": "<p>An alias for <a href=\"#consolegrouplabel\"><code>console.group()</code></a>.</p>"
3121cb0ef41Sopenharmony_ci            },
3131cb0ef41Sopenharmony_ci            {
3141cb0ef41Sopenharmony_ci              "textRaw": "`console.groupEnd()`",
3151cb0ef41Sopenharmony_ci              "type": "method",
3161cb0ef41Sopenharmony_ci              "name": "groupEnd",
3171cb0ef41Sopenharmony_ci              "meta": {
3181cb0ef41Sopenharmony_ci                "added": [
3191cb0ef41Sopenharmony_ci                  "v8.5.0"
3201cb0ef41Sopenharmony_ci                ],
3211cb0ef41Sopenharmony_ci                "changes": []
3221cb0ef41Sopenharmony_ci              },
3231cb0ef41Sopenharmony_ci              "signatures": [
3241cb0ef41Sopenharmony_ci                {
3251cb0ef41Sopenharmony_ci                  "params": []
3261cb0ef41Sopenharmony_ci                }
3271cb0ef41Sopenharmony_ci              ],
3281cb0ef41Sopenharmony_ci              "desc": "<p>Decreases indentation of subsequent lines by spaces for <code>groupIndentation</code>\nlength.</p>"
3291cb0ef41Sopenharmony_ci            },
3301cb0ef41Sopenharmony_ci            {
3311cb0ef41Sopenharmony_ci              "textRaw": "`console.info([data][, ...args])`",
3321cb0ef41Sopenharmony_ci              "type": "method",
3331cb0ef41Sopenharmony_ci              "name": "info",
3341cb0ef41Sopenharmony_ci              "meta": {
3351cb0ef41Sopenharmony_ci                "added": [
3361cb0ef41Sopenharmony_ci                  "v0.1.100"
3371cb0ef41Sopenharmony_ci                ],
3381cb0ef41Sopenharmony_ci                "changes": []
3391cb0ef41Sopenharmony_ci              },
3401cb0ef41Sopenharmony_ci              "signatures": [
3411cb0ef41Sopenharmony_ci                {
3421cb0ef41Sopenharmony_ci                  "params": [
3431cb0ef41Sopenharmony_ci                    {
3441cb0ef41Sopenharmony_ci                      "textRaw": "`data` {any}",
3451cb0ef41Sopenharmony_ci                      "name": "data",
3461cb0ef41Sopenharmony_ci                      "type": "any"
3471cb0ef41Sopenharmony_ci                    },
3481cb0ef41Sopenharmony_ci                    {
3491cb0ef41Sopenharmony_ci                      "textRaw": "`...args` {any}",
3501cb0ef41Sopenharmony_ci                      "name": "...args",
3511cb0ef41Sopenharmony_ci                      "type": "any"
3521cb0ef41Sopenharmony_ci                    }
3531cb0ef41Sopenharmony_ci                  ]
3541cb0ef41Sopenharmony_ci                }
3551cb0ef41Sopenharmony_ci              ],
3561cb0ef41Sopenharmony_ci              "desc": "<p>The <code>console.info()</code> function is an alias for <a href=\"#consolelogdata-args\"><code>console.log()</code></a>.</p>"
3571cb0ef41Sopenharmony_ci            },
3581cb0ef41Sopenharmony_ci            {
3591cb0ef41Sopenharmony_ci              "textRaw": "`console.log([data][, ...args])`",
3601cb0ef41Sopenharmony_ci              "type": "method",
3611cb0ef41Sopenharmony_ci              "name": "log",
3621cb0ef41Sopenharmony_ci              "meta": {
3631cb0ef41Sopenharmony_ci                "added": [
3641cb0ef41Sopenharmony_ci                  "v0.1.100"
3651cb0ef41Sopenharmony_ci                ],
3661cb0ef41Sopenharmony_ci                "changes": []
3671cb0ef41Sopenharmony_ci              },
3681cb0ef41Sopenharmony_ci              "signatures": [
3691cb0ef41Sopenharmony_ci                {
3701cb0ef41Sopenharmony_ci                  "params": [
3711cb0ef41Sopenharmony_ci                    {
3721cb0ef41Sopenharmony_ci                      "textRaw": "`data` {any}",
3731cb0ef41Sopenharmony_ci                      "name": "data",
3741cb0ef41Sopenharmony_ci                      "type": "any"
3751cb0ef41Sopenharmony_ci                    },
3761cb0ef41Sopenharmony_ci                    {
3771cb0ef41Sopenharmony_ci                      "textRaw": "`...args` {any}",
3781cb0ef41Sopenharmony_ci                      "name": "...args",
3791cb0ef41Sopenharmony_ci                      "type": "any"
3801cb0ef41Sopenharmony_ci                    }
3811cb0ef41Sopenharmony_ci                  ]
3821cb0ef41Sopenharmony_ci                }
3831cb0ef41Sopenharmony_ci              ],
3841cb0ef41Sopenharmony_ci              "desc": "<p>Prints to <code>stdout</code> with newline. Multiple arguments can be passed, with the\nfirst used as the primary message and all additional used as substitution\nvalues similar to <a href=\"http://man7.org/linux/man-pages/man3/printf.3.html\"><code>printf(3)</code></a> (the arguments are all passed to\n<a href=\"util.html#utilformatformat-args\"><code>util.format()</code></a>).</p>\n<pre><code class=\"language-js\">const count = 5;\nconsole.log('count: %d', count);\n// Prints: count: 5, to stdout\nconsole.log('count:', count);\n// Prints: count: 5, to stdout\n</code></pre>\n<p>See <a href=\"util.html#utilformatformat-args\"><code>util.format()</code></a> for more information.</p>"
3851cb0ef41Sopenharmony_ci            },
3861cb0ef41Sopenharmony_ci            {
3871cb0ef41Sopenharmony_ci              "textRaw": "`console.table(tabularData[, properties])`",
3881cb0ef41Sopenharmony_ci              "type": "method",
3891cb0ef41Sopenharmony_ci              "name": "table",
3901cb0ef41Sopenharmony_ci              "meta": {
3911cb0ef41Sopenharmony_ci                "added": [
3921cb0ef41Sopenharmony_ci                  "v10.0.0"
3931cb0ef41Sopenharmony_ci                ],
3941cb0ef41Sopenharmony_ci                "changes": []
3951cb0ef41Sopenharmony_ci              },
3961cb0ef41Sopenharmony_ci              "signatures": [
3971cb0ef41Sopenharmony_ci                {
3981cb0ef41Sopenharmony_ci                  "params": [
3991cb0ef41Sopenharmony_ci                    {
4001cb0ef41Sopenharmony_ci                      "textRaw": "`tabularData` {any}",
4011cb0ef41Sopenharmony_ci                      "name": "tabularData",
4021cb0ef41Sopenharmony_ci                      "type": "any"
4031cb0ef41Sopenharmony_ci                    },
4041cb0ef41Sopenharmony_ci                    {
4051cb0ef41Sopenharmony_ci                      "textRaw": "`properties` {string\\[]} Alternate properties for constructing the table.",
4061cb0ef41Sopenharmony_ci                      "name": "properties",
4071cb0ef41Sopenharmony_ci                      "type": "string\\[]",
4081cb0ef41Sopenharmony_ci                      "desc": "Alternate properties for constructing the table."
4091cb0ef41Sopenharmony_ci                    }
4101cb0ef41Sopenharmony_ci                  ]
4111cb0ef41Sopenharmony_ci                }
4121cb0ef41Sopenharmony_ci              ],
4131cb0ef41Sopenharmony_ci              "desc": "<p>Try to construct a table with the columns of the properties of <code>tabularData</code>\n(or use <code>properties</code>) and rows of <code>tabularData</code> and log it. Falls back to just\nlogging the argument if it can't be parsed as tabular.</p>\n<pre><code class=\"language-js\">// These can't be parsed as tabular data\nconsole.table(Symbol());\n// Symbol()\n\nconsole.table(undefined);\n// undefined\n\nconsole.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);\n// ┌─────────┬─────┬─────┐\n// │ (index) │  a  │  b  │\n// ├─────────┼─────┼─────┤\n// │    0    │  1  │ 'Y' │\n// │    1    │ 'Z' │  2  │\n// └─────────┴─────┴─────┘\n\nconsole.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);\n// ┌─────────┬─────┐\n// │ (index) │  a  │\n// ├─────────┼─────┤\n// │    0    │  1  │\n// │    1    │ 'Z' │\n// └─────────┴─────┘\n</code></pre>"
4141cb0ef41Sopenharmony_ci            },
4151cb0ef41Sopenharmony_ci            {
4161cb0ef41Sopenharmony_ci              "textRaw": "`console.time([label])`",
4171cb0ef41Sopenharmony_ci              "type": "method",
4181cb0ef41Sopenharmony_ci              "name": "time",
4191cb0ef41Sopenharmony_ci              "meta": {
4201cb0ef41Sopenharmony_ci                "added": [
4211cb0ef41Sopenharmony_ci                  "v0.1.104"
4221cb0ef41Sopenharmony_ci                ],
4231cb0ef41Sopenharmony_ci                "changes": []
4241cb0ef41Sopenharmony_ci              },
4251cb0ef41Sopenharmony_ci              "signatures": [
4261cb0ef41Sopenharmony_ci                {
4271cb0ef41Sopenharmony_ci                  "params": [
4281cb0ef41Sopenharmony_ci                    {
4291cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string} **Default:** `'default'`",
4301cb0ef41Sopenharmony_ci                      "name": "label",
4311cb0ef41Sopenharmony_ci                      "type": "string",
4321cb0ef41Sopenharmony_ci                      "default": "`'default'`"
4331cb0ef41Sopenharmony_ci                    }
4341cb0ef41Sopenharmony_ci                  ]
4351cb0ef41Sopenharmony_ci                }
4361cb0ef41Sopenharmony_ci              ],
4371cb0ef41Sopenharmony_ci              "desc": "<p>Starts a timer that can be used to compute the duration of an operation. Timers\nare identified by a unique <code>label</code>. Use the same <code>label</code> when calling\n<a href=\"#consoletimeendlabel\"><code>console.timeEnd()</code></a> to stop the timer and output the elapsed time in\nsuitable time units to <code>stdout</code>. For example, if the elapsed\ntime is 3869ms, <code>console.timeEnd()</code> displays \"3.869s\".</p>"
4381cb0ef41Sopenharmony_ci            },
4391cb0ef41Sopenharmony_ci            {
4401cb0ef41Sopenharmony_ci              "textRaw": "`console.timeEnd([label])`",
4411cb0ef41Sopenharmony_ci              "type": "method",
4421cb0ef41Sopenharmony_ci              "name": "timeEnd",
4431cb0ef41Sopenharmony_ci              "meta": {
4441cb0ef41Sopenharmony_ci                "added": [
4451cb0ef41Sopenharmony_ci                  "v0.1.104"
4461cb0ef41Sopenharmony_ci                ],
4471cb0ef41Sopenharmony_ci                "changes": [
4481cb0ef41Sopenharmony_ci                  {
4491cb0ef41Sopenharmony_ci                    "version": "v13.0.0",
4501cb0ef41Sopenharmony_ci                    "pr-url": "https://github.com/nodejs/node/pull/29251",
4511cb0ef41Sopenharmony_ci                    "description": "The elapsed time is displayed with a suitable time unit."
4521cb0ef41Sopenharmony_ci                  },
4531cb0ef41Sopenharmony_ci                  {
4541cb0ef41Sopenharmony_ci                    "version": "v6.0.0",
4551cb0ef41Sopenharmony_ci                    "pr-url": "https://github.com/nodejs/node/pull/5901",
4561cb0ef41Sopenharmony_ci                    "description": "This method no longer supports multiple calls that don't map to individual `console.time()` calls; see below for details."
4571cb0ef41Sopenharmony_ci                  }
4581cb0ef41Sopenharmony_ci                ]
4591cb0ef41Sopenharmony_ci              },
4601cb0ef41Sopenharmony_ci              "signatures": [
4611cb0ef41Sopenharmony_ci                {
4621cb0ef41Sopenharmony_ci                  "params": [
4631cb0ef41Sopenharmony_ci                    {
4641cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string} **Default:** `'default'`",
4651cb0ef41Sopenharmony_ci                      "name": "label",
4661cb0ef41Sopenharmony_ci                      "type": "string",
4671cb0ef41Sopenharmony_ci                      "default": "`'default'`"
4681cb0ef41Sopenharmony_ci                    }
4691cb0ef41Sopenharmony_ci                  ]
4701cb0ef41Sopenharmony_ci                }
4711cb0ef41Sopenharmony_ci              ],
4721cb0ef41Sopenharmony_ci              "desc": "<p>Stops a timer that was previously started by calling <a href=\"#consoletimelabel\"><code>console.time()</code></a> and\nprints the result to <code>stdout</code>:</p>\n<pre><code class=\"language-js\">console.time('bunch-of-stuff');\n// Do a bunch of stuff.\nconsole.timeEnd('bunch-of-stuff');\n// Prints: bunch-of-stuff: 225.438ms\n</code></pre>"
4731cb0ef41Sopenharmony_ci            },
4741cb0ef41Sopenharmony_ci            {
4751cb0ef41Sopenharmony_ci              "textRaw": "`console.timeLog([label][, ...data])`",
4761cb0ef41Sopenharmony_ci              "type": "method",
4771cb0ef41Sopenharmony_ci              "name": "timeLog",
4781cb0ef41Sopenharmony_ci              "meta": {
4791cb0ef41Sopenharmony_ci                "added": [
4801cb0ef41Sopenharmony_ci                  "v10.7.0"
4811cb0ef41Sopenharmony_ci                ],
4821cb0ef41Sopenharmony_ci                "changes": []
4831cb0ef41Sopenharmony_ci              },
4841cb0ef41Sopenharmony_ci              "signatures": [
4851cb0ef41Sopenharmony_ci                {
4861cb0ef41Sopenharmony_ci                  "params": [
4871cb0ef41Sopenharmony_ci                    {
4881cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string} **Default:** `'default'`",
4891cb0ef41Sopenharmony_ci                      "name": "label",
4901cb0ef41Sopenharmony_ci                      "type": "string",
4911cb0ef41Sopenharmony_ci                      "default": "`'default'`"
4921cb0ef41Sopenharmony_ci                    },
4931cb0ef41Sopenharmony_ci                    {
4941cb0ef41Sopenharmony_ci                      "textRaw": "`...data` {any}",
4951cb0ef41Sopenharmony_ci                      "name": "...data",
4961cb0ef41Sopenharmony_ci                      "type": "any"
4971cb0ef41Sopenharmony_ci                    }
4981cb0ef41Sopenharmony_ci                  ]
4991cb0ef41Sopenharmony_ci                }
5001cb0ef41Sopenharmony_ci              ],
5011cb0ef41Sopenharmony_ci              "desc": "<p>For a timer that was previously started by calling <a href=\"#consoletimelabel\"><code>console.time()</code></a>, prints\nthe elapsed time and other <code>data</code> arguments to <code>stdout</code>:</p>\n<pre><code class=\"language-js\">console.time('process');\nconst value = expensiveProcess1(); // Returns 42\nconsole.timeLog('process', value);\n// Prints \"process: 365.227ms 42\".\ndoExpensiveProcess2(value);\nconsole.timeEnd('process');\n</code></pre>"
5021cb0ef41Sopenharmony_ci            },
5031cb0ef41Sopenharmony_ci            {
5041cb0ef41Sopenharmony_ci              "textRaw": "`console.trace([message][, ...args])`",
5051cb0ef41Sopenharmony_ci              "type": "method",
5061cb0ef41Sopenharmony_ci              "name": "trace",
5071cb0ef41Sopenharmony_ci              "meta": {
5081cb0ef41Sopenharmony_ci                "added": [
5091cb0ef41Sopenharmony_ci                  "v0.1.104"
5101cb0ef41Sopenharmony_ci                ],
5111cb0ef41Sopenharmony_ci                "changes": []
5121cb0ef41Sopenharmony_ci              },
5131cb0ef41Sopenharmony_ci              "signatures": [
5141cb0ef41Sopenharmony_ci                {
5151cb0ef41Sopenharmony_ci                  "params": [
5161cb0ef41Sopenharmony_ci                    {
5171cb0ef41Sopenharmony_ci                      "textRaw": "`message` {any}",
5181cb0ef41Sopenharmony_ci                      "name": "message",
5191cb0ef41Sopenharmony_ci                      "type": "any"
5201cb0ef41Sopenharmony_ci                    },
5211cb0ef41Sopenharmony_ci                    {
5221cb0ef41Sopenharmony_ci                      "textRaw": "`...args` {any}",
5231cb0ef41Sopenharmony_ci                      "name": "...args",
5241cb0ef41Sopenharmony_ci                      "type": "any"
5251cb0ef41Sopenharmony_ci                    }
5261cb0ef41Sopenharmony_ci                  ]
5271cb0ef41Sopenharmony_ci                }
5281cb0ef41Sopenharmony_ci              ],
5291cb0ef41Sopenharmony_ci              "desc": "<p>Prints to <code>stderr</code> the string <code>'Trace: '</code>, followed by the <a href=\"util.html#utilformatformat-args\"><code>util.format()</code></a>\nformatted message and stack trace to the current position in the code.</p>\n<pre><code class=\"language-js\">console.trace('Show me');\n// Prints: (stack trace will vary based on where trace is called)\n//  Trace: Show me\n//    at repl:2:9\n//    at REPLServer.defaultEval (repl.js:248:27)\n//    at bound (domain.js:287:14)\n//    at REPLServer.runBound [as eval] (domain.js:300:12)\n//    at REPLServer.&#x3C;anonymous> (repl.js:412:12)\n//    at emitOne (events.js:82:20)\n//    at REPLServer.emit (events.js:169:7)\n//    at REPLServer.Interface._onLine (readline.js:210:10)\n//    at REPLServer.Interface._line (readline.js:549:8)\n//    at REPLServer.Interface._ttyWrite (readline.js:826:14)\n</code></pre>"
5301cb0ef41Sopenharmony_ci            },
5311cb0ef41Sopenharmony_ci            {
5321cb0ef41Sopenharmony_ci              "textRaw": "`console.warn([data][, ...args])`",
5331cb0ef41Sopenharmony_ci              "type": "method",
5341cb0ef41Sopenharmony_ci              "name": "warn",
5351cb0ef41Sopenharmony_ci              "meta": {
5361cb0ef41Sopenharmony_ci                "added": [
5371cb0ef41Sopenharmony_ci                  "v0.1.100"
5381cb0ef41Sopenharmony_ci                ],
5391cb0ef41Sopenharmony_ci                "changes": []
5401cb0ef41Sopenharmony_ci              },
5411cb0ef41Sopenharmony_ci              "signatures": [
5421cb0ef41Sopenharmony_ci                {
5431cb0ef41Sopenharmony_ci                  "params": [
5441cb0ef41Sopenharmony_ci                    {
5451cb0ef41Sopenharmony_ci                      "textRaw": "`data` {any}",
5461cb0ef41Sopenharmony_ci                      "name": "data",
5471cb0ef41Sopenharmony_ci                      "type": "any"
5481cb0ef41Sopenharmony_ci                    },
5491cb0ef41Sopenharmony_ci                    {
5501cb0ef41Sopenharmony_ci                      "textRaw": "`...args` {any}",
5511cb0ef41Sopenharmony_ci                      "name": "...args",
5521cb0ef41Sopenharmony_ci                      "type": "any"
5531cb0ef41Sopenharmony_ci                    }
5541cb0ef41Sopenharmony_ci                  ]
5551cb0ef41Sopenharmony_ci                }
5561cb0ef41Sopenharmony_ci              ],
5571cb0ef41Sopenharmony_ci              "desc": "<p>The <code>console.warn()</code> function is an alias for <a href=\"#consoleerrordata-args\"><code>console.error()</code></a>.</p>"
5581cb0ef41Sopenharmony_ci            }
5591cb0ef41Sopenharmony_ci          ],
5601cb0ef41Sopenharmony_ci          "signatures": [
5611cb0ef41Sopenharmony_ci            {
5621cb0ef41Sopenharmony_ci              "params": [
5631cb0ef41Sopenharmony_ci                {
5641cb0ef41Sopenharmony_ci                  "textRaw": "`options` {Object}",
5651cb0ef41Sopenharmony_ci                  "name": "options",
5661cb0ef41Sopenharmony_ci                  "type": "Object",
5671cb0ef41Sopenharmony_ci                  "options": [
5681cb0ef41Sopenharmony_ci                    {
5691cb0ef41Sopenharmony_ci                      "textRaw": "`stdout` {stream.Writable}",
5701cb0ef41Sopenharmony_ci                      "name": "stdout",
5711cb0ef41Sopenharmony_ci                      "type": "stream.Writable"
5721cb0ef41Sopenharmony_ci                    },
5731cb0ef41Sopenharmony_ci                    {
5741cb0ef41Sopenharmony_ci                      "textRaw": "`stderr` {stream.Writable}",
5751cb0ef41Sopenharmony_ci                      "name": "stderr",
5761cb0ef41Sopenharmony_ci                      "type": "stream.Writable"
5771cb0ef41Sopenharmony_ci                    },
5781cb0ef41Sopenharmony_ci                    {
5791cb0ef41Sopenharmony_ci                      "textRaw": "`ignoreErrors` {boolean} Ignore errors when writing to the underlying streams. **Default:** `true`.",
5801cb0ef41Sopenharmony_ci                      "name": "ignoreErrors",
5811cb0ef41Sopenharmony_ci                      "type": "boolean",
5821cb0ef41Sopenharmony_ci                      "default": "`true`",
5831cb0ef41Sopenharmony_ci                      "desc": "Ignore errors when writing to the underlying streams."
5841cb0ef41Sopenharmony_ci                    },
5851cb0ef41Sopenharmony_ci                    {
5861cb0ef41Sopenharmony_ci                      "textRaw": "`colorMode` {boolean|string} Set color support for this `Console` instance. Setting to `true` enables coloring while inspecting values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the respective stream. This option can not be used, if `inspectOptions.colors` is set as well. **Default:** `'auto'`.",
5871cb0ef41Sopenharmony_ci                      "name": "colorMode",
5881cb0ef41Sopenharmony_ci                      "type": "boolean|string",
5891cb0ef41Sopenharmony_ci                      "default": "`'auto'`",
5901cb0ef41Sopenharmony_ci                      "desc": "Set color support for this `Console` instance. Setting to `true` enables coloring while inspecting values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the respective stream. This option can not be used, if `inspectOptions.colors` is set as well."
5911cb0ef41Sopenharmony_ci                    },
5921cb0ef41Sopenharmony_ci                    {
5931cb0ef41Sopenharmony_ci                      "textRaw": "`inspectOptions` {Object} Specifies options that are passed along to [`util.inspect()`][].",
5941cb0ef41Sopenharmony_ci                      "name": "inspectOptions",
5951cb0ef41Sopenharmony_ci                      "type": "Object",
5961cb0ef41Sopenharmony_ci                      "desc": "Specifies options that are passed along to [`util.inspect()`][]."
5971cb0ef41Sopenharmony_ci                    },
5981cb0ef41Sopenharmony_ci                    {
5991cb0ef41Sopenharmony_ci                      "textRaw": "`groupIndentation` {number} Set group indentation. **Default:** `2`.",
6001cb0ef41Sopenharmony_ci                      "name": "groupIndentation",
6011cb0ef41Sopenharmony_ci                      "type": "number",
6021cb0ef41Sopenharmony_ci                      "default": "`2`",
6031cb0ef41Sopenharmony_ci                      "desc": "Set group indentation."
6041cb0ef41Sopenharmony_ci                    }
6051cb0ef41Sopenharmony_ci                  ]
6061cb0ef41Sopenharmony_ci                }
6071cb0ef41Sopenharmony_ci              ],
6081cb0ef41Sopenharmony_ci              "desc": "<p>Creates a new <code>Console</code> with one or two writable stream instances. <code>stdout</code> is a\nwritable stream to print log or info output. <code>stderr</code> is used for warning or\nerror output. If <code>stderr</code> is not provided, <code>stdout</code> is used for <code>stderr</code>.</p>\n<pre><code class=\"language-js\">const output = fs.createWriteStream('./stdout.log');\nconst errorOutput = fs.createWriteStream('./stderr.log');\n// Custom simple logger\nconst logger = new Console({ stdout: output, stderr: errorOutput });\n// use it like console\nconst count = 5;\nlogger.log('count: %d', count);\n// In stdout.log: count 5\n</code></pre>\n<p>The global <code>console</code> is a special <code>Console</code> whose output is sent to\n<a href=\"process.html#processstdout\"><code>process.stdout</code></a> and <a href=\"process.html#processstderr\"><code>process.stderr</code></a>. It is equivalent to calling:</p>\n<pre><code class=\"language-js\">new Console({ stdout: process.stdout, stderr: process.stderr });\n</code></pre>"
6091cb0ef41Sopenharmony_ci            },
6101cb0ef41Sopenharmony_ci            {
6111cb0ef41Sopenharmony_ci              "params": [
6121cb0ef41Sopenharmony_ci                {
6131cb0ef41Sopenharmony_ci                  "textRaw": "`options` {Object}",
6141cb0ef41Sopenharmony_ci                  "name": "options",
6151cb0ef41Sopenharmony_ci                  "type": "Object",
6161cb0ef41Sopenharmony_ci                  "options": [
6171cb0ef41Sopenharmony_ci                    {
6181cb0ef41Sopenharmony_ci                      "textRaw": "`stdout` {stream.Writable}",
6191cb0ef41Sopenharmony_ci                      "name": "stdout",
6201cb0ef41Sopenharmony_ci                      "type": "stream.Writable"
6211cb0ef41Sopenharmony_ci                    },
6221cb0ef41Sopenharmony_ci                    {
6231cb0ef41Sopenharmony_ci                      "textRaw": "`stderr` {stream.Writable}",
6241cb0ef41Sopenharmony_ci                      "name": "stderr",
6251cb0ef41Sopenharmony_ci                      "type": "stream.Writable"
6261cb0ef41Sopenharmony_ci                    },
6271cb0ef41Sopenharmony_ci                    {
6281cb0ef41Sopenharmony_ci                      "textRaw": "`ignoreErrors` {boolean} Ignore errors when writing to the underlying streams. **Default:** `true`.",
6291cb0ef41Sopenharmony_ci                      "name": "ignoreErrors",
6301cb0ef41Sopenharmony_ci                      "type": "boolean",
6311cb0ef41Sopenharmony_ci                      "default": "`true`",
6321cb0ef41Sopenharmony_ci                      "desc": "Ignore errors when writing to the underlying streams."
6331cb0ef41Sopenharmony_ci                    },
6341cb0ef41Sopenharmony_ci                    {
6351cb0ef41Sopenharmony_ci                      "textRaw": "`colorMode` {boolean|string} Set color support for this `Console` instance. Setting to `true` enables coloring while inspecting values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the respective stream. This option can not be used, if `inspectOptions.colors` is set as well. **Default:** `'auto'`.",
6361cb0ef41Sopenharmony_ci                      "name": "colorMode",
6371cb0ef41Sopenharmony_ci                      "type": "boolean|string",
6381cb0ef41Sopenharmony_ci                      "default": "`'auto'`",
6391cb0ef41Sopenharmony_ci                      "desc": "Set color support for this `Console` instance. Setting to `true` enables coloring while inspecting values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the respective stream. This option can not be used, if `inspectOptions.colors` is set as well."
6401cb0ef41Sopenharmony_ci                    },
6411cb0ef41Sopenharmony_ci                    {
6421cb0ef41Sopenharmony_ci                      "textRaw": "`inspectOptions` {Object} Specifies options that are passed along to [`util.inspect()`][].",
6431cb0ef41Sopenharmony_ci                      "name": "inspectOptions",
6441cb0ef41Sopenharmony_ci                      "type": "Object",
6451cb0ef41Sopenharmony_ci                      "desc": "Specifies options that are passed along to [`util.inspect()`][]."
6461cb0ef41Sopenharmony_ci                    },
6471cb0ef41Sopenharmony_ci                    {
6481cb0ef41Sopenharmony_ci                      "textRaw": "`groupIndentation` {number} Set group indentation. **Default:** `2`.",
6491cb0ef41Sopenharmony_ci                      "name": "groupIndentation",
6501cb0ef41Sopenharmony_ci                      "type": "number",
6511cb0ef41Sopenharmony_ci                      "default": "`2`",
6521cb0ef41Sopenharmony_ci                      "desc": "Set group indentation."
6531cb0ef41Sopenharmony_ci                    }
6541cb0ef41Sopenharmony_ci                  ]
6551cb0ef41Sopenharmony_ci                }
6561cb0ef41Sopenharmony_ci              ],
6571cb0ef41Sopenharmony_ci              "desc": "<p>Creates a new <code>Console</code> with one or two writable stream instances. <code>stdout</code> is a\nwritable stream to print log or info output. <code>stderr</code> is used for warning or\nerror output. If <code>stderr</code> is not provided, <code>stdout</code> is used for <code>stderr</code>.</p>\n<pre><code class=\"language-js\">const output = fs.createWriteStream('./stdout.log');\nconst errorOutput = fs.createWriteStream('./stderr.log');\n// Custom simple logger\nconst logger = new Console({ stdout: output, stderr: errorOutput });\n// use it like console\nconst count = 5;\nlogger.log('count: %d', count);\n// In stdout.log: count 5\n</code></pre>\n<p>The global <code>console</code> is a special <code>Console</code> whose output is sent to\n<a href=\"process.html#processstdout\"><code>process.stdout</code></a> and <a href=\"process.html#processstderr\"><code>process.stderr</code></a>. It is equivalent to calling:</p>\n<pre><code class=\"language-js\">new Console({ stdout: process.stdout, stderr: process.stderr });\n</code></pre>"
6581cb0ef41Sopenharmony_ci            }
6591cb0ef41Sopenharmony_ci          ]
6601cb0ef41Sopenharmony_ci        }
6611cb0ef41Sopenharmony_ci      ],
6621cb0ef41Sopenharmony_ci      "modules": [
6631cb0ef41Sopenharmony_ci        {
6641cb0ef41Sopenharmony_ci          "textRaw": "Inspector only methods",
6651cb0ef41Sopenharmony_ci          "name": "inspector_only_methods",
6661cb0ef41Sopenharmony_ci          "desc": "<p>The following methods are exposed by the V8 engine in the general API but do\nnot display anything unless used in conjunction with the <a href=\"debugger.html\">inspector</a>\n(<code>--inspect</code> flag).</p>",
6671cb0ef41Sopenharmony_ci          "methods": [
6681cb0ef41Sopenharmony_ci            {
6691cb0ef41Sopenharmony_ci              "textRaw": "`console.profile([label])`",
6701cb0ef41Sopenharmony_ci              "type": "method",
6711cb0ef41Sopenharmony_ci              "name": "profile",
6721cb0ef41Sopenharmony_ci              "meta": {
6731cb0ef41Sopenharmony_ci                "added": [
6741cb0ef41Sopenharmony_ci                  "v8.0.0"
6751cb0ef41Sopenharmony_ci                ],
6761cb0ef41Sopenharmony_ci                "changes": []
6771cb0ef41Sopenharmony_ci              },
6781cb0ef41Sopenharmony_ci              "signatures": [
6791cb0ef41Sopenharmony_ci                {
6801cb0ef41Sopenharmony_ci                  "params": [
6811cb0ef41Sopenharmony_ci                    {
6821cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string}",
6831cb0ef41Sopenharmony_ci                      "name": "label",
6841cb0ef41Sopenharmony_ci                      "type": "string"
6851cb0ef41Sopenharmony_ci                    }
6861cb0ef41Sopenharmony_ci                  ]
6871cb0ef41Sopenharmony_ci                }
6881cb0ef41Sopenharmony_ci              ],
6891cb0ef41Sopenharmony_ci              "desc": "<p>This method does not display anything unless used in the inspector. The\n<code>console.profile()</code> method starts a JavaScript CPU profile with an optional\nlabel until <a href=\"#consoleprofileendlabel\"><code>console.profileEnd()</code></a> is called. The profile is then added to\nthe <strong>Profile</strong> panel of the inspector.</p>\n<pre><code class=\"language-js\">console.profile('MyLabel');\n// Some code\nconsole.profileEnd('MyLabel');\n// Adds the profile 'MyLabel' to the Profiles panel of the inspector.\n</code></pre>"
6901cb0ef41Sopenharmony_ci            },
6911cb0ef41Sopenharmony_ci            {
6921cb0ef41Sopenharmony_ci              "textRaw": "`console.profileEnd([label])`",
6931cb0ef41Sopenharmony_ci              "type": "method",
6941cb0ef41Sopenharmony_ci              "name": "profileEnd",
6951cb0ef41Sopenharmony_ci              "meta": {
6961cb0ef41Sopenharmony_ci                "added": [
6971cb0ef41Sopenharmony_ci                  "v8.0.0"
6981cb0ef41Sopenharmony_ci                ],
6991cb0ef41Sopenharmony_ci                "changes": []
7001cb0ef41Sopenharmony_ci              },
7011cb0ef41Sopenharmony_ci              "signatures": [
7021cb0ef41Sopenharmony_ci                {
7031cb0ef41Sopenharmony_ci                  "params": [
7041cb0ef41Sopenharmony_ci                    {
7051cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string}",
7061cb0ef41Sopenharmony_ci                      "name": "label",
7071cb0ef41Sopenharmony_ci                      "type": "string"
7081cb0ef41Sopenharmony_ci                    }
7091cb0ef41Sopenharmony_ci                  ]
7101cb0ef41Sopenharmony_ci                }
7111cb0ef41Sopenharmony_ci              ],
7121cb0ef41Sopenharmony_ci              "desc": "<p>This method does not display anything unless used in the inspector. Stops the\ncurrent JavaScript CPU profiling session if one has been started and prints\nthe report to the <strong>Profiles</strong> panel of the inspector. See\n<a href=\"#consoleprofilelabel\"><code>console.profile()</code></a> for an example.</p>\n<p>If this method is called without a label, the most recently started profile is\nstopped.</p>"
7131cb0ef41Sopenharmony_ci            },
7141cb0ef41Sopenharmony_ci            {
7151cb0ef41Sopenharmony_ci              "textRaw": "`console.timeStamp([label])`",
7161cb0ef41Sopenharmony_ci              "type": "method",
7171cb0ef41Sopenharmony_ci              "name": "timeStamp",
7181cb0ef41Sopenharmony_ci              "meta": {
7191cb0ef41Sopenharmony_ci                "added": [
7201cb0ef41Sopenharmony_ci                  "v8.0.0"
7211cb0ef41Sopenharmony_ci                ],
7221cb0ef41Sopenharmony_ci                "changes": []
7231cb0ef41Sopenharmony_ci              },
7241cb0ef41Sopenharmony_ci              "signatures": [
7251cb0ef41Sopenharmony_ci                {
7261cb0ef41Sopenharmony_ci                  "params": [
7271cb0ef41Sopenharmony_ci                    {
7281cb0ef41Sopenharmony_ci                      "textRaw": "`label` {string}",
7291cb0ef41Sopenharmony_ci                      "name": "label",
7301cb0ef41Sopenharmony_ci                      "type": "string"
7311cb0ef41Sopenharmony_ci                    }
7321cb0ef41Sopenharmony_ci                  ]
7331cb0ef41Sopenharmony_ci                }
7341cb0ef41Sopenharmony_ci              ],
7351cb0ef41Sopenharmony_ci              "desc": "<p>This method does not display anything unless used in the inspector. The\n<code>console.timeStamp()</code> method adds an event with the label <code>'label'</code> to the\n<strong>Timeline</strong> panel of the inspector.</p>"
7361cb0ef41Sopenharmony_ci            }
7371cb0ef41Sopenharmony_ci          ],
7381cb0ef41Sopenharmony_ci          "type": "module",
7391cb0ef41Sopenharmony_ci          "displayName": "Inspector only methods"
7401cb0ef41Sopenharmony_ci        }
7411cb0ef41Sopenharmony_ci      ],
7421cb0ef41Sopenharmony_ci      "type": "module",
7431cb0ef41Sopenharmony_ci      "displayName": "Console"
7441cb0ef41Sopenharmony_ci    }
7451cb0ef41Sopenharmony_ci  ]
7461cb0ef41Sopenharmony_ci}