node/doc/api
Ruben Bridgewater c9fece38c8
util: change inspect compact and breakLength default
This changes the `compact` default from `true` to `3`. That mode
changes arrays to be grouped together, it alignes multiple small
entries on a single line in similar to `compact` true but only for
the most inner three depth levels and the closing brackets are
always on the same indentation as the openeing of the object instead
of at the same line as another property.

Big strings will be naturally broken into multiple lines instead of
having one huge line that is not well readable.

The output size mainly stays the same that way while it will be
smaller in case of big arrays.

Increasing the `breakLength` to 80 adjusts for most terminals that
support at least 80 characters in a single line and improves the
general output that way. A lot of calculations use the `breakLength`
to determine the concrete behavior.

PR-URL: https://github.com/nodejs/node/pull/27109
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2019-04-10 17:59:14 +02:00
..
addons.md doc: hello addon example should return "world" 2019-03-05 23:54:31 +01:00
assert.md assert: adjust loose assertions 2019-01-27 03:34:25 +01:00
async_hooks.md doc: list when promiseResolve hook was added to async_hooks 2019-04-01 16:22:25 +02:00
buffer.md buffer: add {read|write}Big[U]Int64{BE|LE} methods 2019-04-06 19:30:23 +02:00
child_process.md child_process: use non-infinite maxBuffer defaults 2019-04-09 13:57:04 -07:00
cli.md esm: fix typos 2019-04-03 21:24:41 +03:00
cluster.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
console.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
crypto.md crypto: add support for RSA-PSS keys 2019-04-08 09:22:32 +02:00
debugger.md inspector: use js_app.html as the landing page for chrome devtools 2018-06-28 09:24:02 -03:00
deprecations.md lib: move DEP0021 to end of life 2019-04-10 08:25:50 -04:00
dgram.md dgram: add support for UDP connected sockets 2019-04-03 06:48:13 +02:00
dns.md doc: move dns.promises to stable status 2019-03-29 18:57:13 -04:00
documentation.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
domain.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
errors.md doc: fix section sorting, add link reference 2019-04-03 22:44:53 +03:00
esm.md esm: phase two of new esm implementation 2019-03-27 15:52:11 -04:00
events.md 2019-03-28, Version 11.13.0 (Current) 2019-03-28 20:23:29 +01:00
fs.md fs: remove experimental warning for fs.promises 2019-04-02 14:20:05 +02:00
globals.md lib: move queueMicrotask to stable 2019-03-08 08:19:38 -06:00
http2.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
http.md doc: improve the doc of the 'information' event 2019-04-02 06:19:52 +02:00
https.md doc: add missing https Agent maxCachedSessions 2019-03-07 00:41:21 +01:00
index.md doc: add node-report documentation 2019-01-18 10:35:55 +05:30
inspector.md doc: add inspector API example for heapdump 2019-03-11 06:19:11 +01:00
intl.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
modules.md doc: add information about modules cache behavior 2019-04-01 18:07:09 +02:00
n-api.md 2019-03-06, Version 11.11.0 (Current) 2019-03-06 20:24:50 +01:00
net.md benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
os.md doc: fix section sorting, add link reference 2019-04-03 22:44:53 +03:00
path.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
perf_hooks.md benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
policy.md doc: fix metadata for v11.8.0 doc changes 2019-01-25 19:09:26 -08:00
process.md doc: change code lang and update it with latest Node.js 2019-03-31 22:20:34 +03:00
punycode.md doc: prevent some redirections 2018-07-14 22:57:03 +03:00
querystring.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
readline.md readline: make Symbol.asyncIterator support stable 2019-04-03 09:17:10 +02:00
repl.md repl: fix terminal default setting 2019-03-25 16:28:07 +01:00
report.md report: add cwd to report 2019-04-02 20:48:59 -04:00
stream.md stream: make Symbol.asyncIterator support stable 2019-04-03 09:15:59 +02:00
string_decoder.md string_decoder: support typed array or data view 2018-09-17 17:48:44 +02:00
synopsis.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
timers.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
tls.md doc: correct typo: cert.issuerCertificate 2019-03-28 14:20:08 -07:00
tracing.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
tty.md doc: specify return type for tty.isatty() 2019-04-09 23:06:46 +03:00
url.md doc: list all versions WHATWG URL api was added 2018-12-05 15:08:38 -08:00
util.md util: change inspect compact and breakLength default 2019-04-10 17:59:14 +02:00
v8.md doc: remove outdated link 2019-04-09 16:43:04 -04:00
vm.md doc: fix section order in vm.md 2019-01-14 09:36:41 +01:00
worker_threads.md worker: use copy of process.env 2019-03-30 22:25:35 +01:00
zlib.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00