From 28ffb3b03faa80f529004ba93a0ff2f833979d67 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 10 Sep 2018 08:55:00 +0200 Subject: [PATCH 1/5] util: add order option to `.inspect()` The order option can be used to sort the inspected values in case they do not rely on their order as arrays. That way the output is stable no matter of the object property inspection order. --- doc/api/util.md | 8 ++++++++ lib/util.js | 13 ++++++++++--- test/parallel/test-util-inspect.js | 16 ++++++++++++++++ 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index d29fbfc5b7f050..3cd3db116948f3 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -360,6 +360,9 @@ stream.write('With ES6');