console: console.dir() accepts options object
authorXavi Magrinyà <xavi.mb89@gmail.com>
Sun, 8 Jun 2014 10:02:54 +0000 (13:02 +0300)
committerFedor Indutny <fedor@indutny.com>
Thu, 12 Jun 2014 17:42:52 +0000 (10:42 -0700)
commit1cd48c7ae5f592307741865f2ba650515a0c4f01
tree70e956355875f3f83f1112c34ae1edfcf1f315ae
parente00cafa311e2503dbd7e016623de718979161754
console: console.dir() accepts options object

This features comes from the need of adding extra options when displaying
the object using console.dir().

console.dir() accepts now a second parameter that is passed to util.inspect()
in order to provide extra options to the output. These options are: depth, color
and showHidden. More information about these options in util.inspect() documentation.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
doc/api/console.markdown
lib/console.js