diff --git a/doc/api/console.md b/doc/api/console.md index ba1505ec1d0f21..ac020c6b1bf9d0 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -277,6 +277,21 @@ Defaults to `2`. To make it recurse indefinitely, pass `null`. Defaults to `false`. Colors are customizable; see [customizing `util.inspect()` colors][]. +### console.dirxml(...data) + +* `...data` {any} + +This method calls `console.dir()` with default options for each argument it +receives. See [`console.dir()`][] for more details about said defaults. +Please note that this method doesn't produce any xml formatting and uses the +default `console.dir()` formatting resolution instead. + ### console.error([data][, ...args]) -* `object` {string} - -This method does not display anything unless used in the inspector. The -`console.dirxml()` method displays in `stdout` an XML interactive tree -representation of the descendants of the specified `object` if possible, or the -JavaScript representation if not. Calling `console.dirxml()` on an HTML or XML -element is equivalent to calling `console.log()`. - ### console.markTimeline(label)