Files
node/lib
Ruben Bridgewater c2203cb4dd util: add util.inspect compact option
The current default formatting is not ideal and this improves
the situation by formatting the output more intuitiv.

1) All object keys are now indented by 2 characters instead of
   sometimes 2 and sometimes 3 characters.
2) Each object key will now use an individual line instead of
   sharing a line potentially with multiple object keys.
3) Long strings will now be split into multiple lines in case
   they exceed the "lineBreak" option length (including the
   current indentation).
4) Opening braces are now directly behind a object property
   instead of using a new line.
5) Switch inspect "base" order. In case the compact option is set
   to `false`, inspect will now print
     "[Function: foo] {\n  property: 'data'\n}"
   instead of
     "{ [Function: foo]\n  property: 'data'\n}".

PR-URL: https://github.com/nodejs/node/pull/17576
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2017-12-21 03:45:25 -03:00
..
2017-12-21 03:01:02 -03:00
2017-12-13 09:33:27 -05:00
2017-12-13 13:26:54 -08:00
2017-08-28 00:39:42 +04:00
2017-11-29 14:16:43 -08:00
2017-03-10 11:23:48 -08:00
2017-12-01 20:44:52 +01:00
2017-11-14 17:31:26 -05:00
2017-12-21 03:45:25 -03:00
2017-12-13 06:23:23 +01:00