0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
Anna Henningsen 59714cb7b3
util: allow symbol-based custom inspection methods
Add a `util.inspect.custom` Symbol which can be used to customize
`util.inspect()` output. Providing `obj[util.inspect.custom]`
works like providing `obj.inspect`, except that the former allows
avoiding name clashes with other `inspect()` methods.

Fixes: https://github.com/nodejs/node/issues/8071
PR-URL: https://github.com/nodejs/node/pull/8174
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
2016-08-25 07:13:00 +02:00
..
_toc.md doc: subdivide TOC, add auxiliary links 2016-04-29 13:27:18 -04:00
addons.md doc: remove extra spaces and concats in examples 2016-07-29 09:12:17 -07:00
all.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
assert.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
buffer.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
child_process.md doc: script with spaces spawn example for windows 2016-08-18 10:37:10 -07:00
cli.md 2016-08-15, Version 6.4.0 (Current) 2016-08-16 10:36:00 -04:00
cluster.md doc: fix cluster message event docs 2016-08-10 09:11:22 -04:00
console.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
crypto.md Revert "crypto: add crypto.timingSafeEqual" 2016-08-23 10:52:32 -07:00
debugger.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
dgram.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
dns.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
documentation.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
domain.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
errors.md doc: various documentation formatting fixes 2016-07-14 12:26:50 +03:00
events.md doc: add added: information for events 2016-08-05 14:43:09 -07:00
fs.md doc: include the optional options parameter 2016-08-24 16:15:11 -07:00
globals.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
http.md doc: improve server.listen() random port 2016-08-05 23:31:07 +02:00
https.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
modules.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
net.md doc: improve server.listen() random port 2016-08-05 23:31:07 +02:00
os.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
path.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
process.md doc: correct argument type for process.cpuUsage 2016-08-22 11:38:25 +02:00
punycode.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
querystring.md doc: fix "hashOwnProperty" typo in querystring 2016-08-15 10:42:38 -07:00
readline.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
repl.md repl: Add editor mode support 2016-08-06 19:41:35 +05:30
stream.md doc: fix variable scoping bug in server example code 2016-08-18 09:50:27 -07:00
string_decoder.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
synopsis.md doc: various documentation formatting fixes 2016-07-14 12:26:50 +03:00
timers.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
tls.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
tty.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
url.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
util.md util: allow symbol-based custom inspection methods 2016-08-25 07:13:00 +02:00
v8.md doc: various documentation formatting fixes 2016-07-14 12:26:50 +03:00
vm.md doc: fix typo in vm.runInNewContext() description 2016-08-09 11:31:46 -07:00
zlib.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00