From 9f90e7bb47e7a9db6652b7d35b28978de91d8b64 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Mar 2020 12:28:11 -0400 Subject: [PATCH 1/2] util: add `maxStrLength` option to `inspect` function Refs: https://github.com/nodejs/node/issues/25478 --- doc/api/util.md | 6 ++++++ lib/internal/util/inspect.js | 14 ++++++++++++-- test/parallel/test-util-inspect.js | 9 +++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index e1dadbf65f299f..6cab40db100b4a 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -398,6 +398,9 @@ stream.write('With ES6');