summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXavi Magrinyà <xavi.mb89@gmail.com>2014-06-08 13:02:54 +0300
committerFedor Indutny <fedor@indutny.com>2014-06-12 10:42:52 -0700
commit1cd48c7ae5f592307741865f2ba650515a0c4f01 (patch)
tree70e956355875f3f83f1112c34ae1edfcf1f315ae /doc
parente00cafa311e2503dbd7e016623de718979161754 (diff)
downloadandroid-node-v8-1cd48c7ae5f592307741865f2ba650515a0c4f01.tar.gz
android-node-v8-1cd48c7ae5f592307741865f2ba650515a0c4f01.tar.bz2
android-node-v8-1cd48c7ae5f592307741865f2ba650515a0c4f01.zip
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/console.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/console.markdown b/doc/api/console.markdown
index 62bccf4323..154b4bf697 100644
--- a/doc/api/console.markdown
+++ b/doc/api/console.markdown
@@ -47,10 +47,10 @@ Same as `console.error`.
## console.dir(obj, [options])
Uses `util.inspect` on `obj` and prints resulting string to stdout. This function
-bypasses any custom `inspect()` function on `obj`. An optional *options* object
+bypasses any custom `inspect()` function on `obj`. An optional *options* object
may be passed that alters certain aspects of the formatted string:
-- `showHidden` - if `true` then the object's non-enumerable properties will be
+- `showHidden` - if `true` then the object's non-enumerable properties will be
shown too. Defaults to `false`.
- `depth` - tells `inspect` how many times to recurse while formatting the