Files
node/doc/api
Ryan Scheel (Havvy) adee93962a doc: more realistic custom inspect example
Changes the custom inspect example to a more complex object that
actually uses the parameters of the custom inspect function. I
specifically chose a wrapper of a value called a "Box" that inspects
to "Box < inner_inspect_value >".

I also want there to be documentation explaining what the code is
actually doing. E.g., the padding replacement part is to make the
inspected value line up properly when multi-line inputs are given.

I also went with having a space between the Box's brackets and the inner
value because it matches how objects work, and that should definitely be
listed as a convention somewhere in here.

Also, the convention to shorten only when depth is less than 0, not e.g.
at 0.

But I don't know how to write the documentation for that, so I'm leaving
that to somebody who reads this message.

Ref: https://github.com/nodejs/node/issues/8442
PR-URL: https://github.com/nodejs/node/pull/8875
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-11-18 19:03:51 -05:00
..
2016-10-11 12:28:39 -04:00
2016-04-26 12:16:28 -07:00
2016-11-18 19:03:50 -05:00
2016-10-11 12:26:30 -04:00
2016-09-09 11:06:17 -04:00
2016-10-11 12:28:39 -04:00
2016-10-11 12:26:30 -04:00
2016-10-11 12:26:30 -04:00
2016-11-11 14:35:22 -05:00
2016-11-11 15:34:40 -05:00
2016-04-26 12:16:28 -07:00
2016-09-09 11:06:18 -04:00
2016-10-11 12:26:37 -04:00
2016-10-11 12:30:38 -04:00
2016-11-11 15:35:46 -05:00
2016-10-11 12:30:31 -04:00
2016-10-11 12:33:01 -04:00
2016-11-15 15:53:18 -05:00
2016-11-11 15:37:03 -05:00