From 3b9803838cf60d74d1df053b2bd6affcceeef009 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Tue, 28 Nov 2017 11:23:35 -0600 Subject: [PATCH] doc: clarify util.inspect usage intent PR-URL: https://github.com/nodejs/node/pull/17375 Reviewed-By: Anna Henningsen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Matteo Collina Reviewed-By: Ruben Bridgewater --- doc/api/util.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 033224ba0cc..3d378443189 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -348,8 +348,9 @@ changes: line. Defaults to 60 for legacy compatibility. The `util.inspect()` method returns a string representation of `object` that is -primarily useful for debugging. Additional `options` may be passed that alter -certain aspects of the formatted string. +intended for debugging. The output of `util.inspect` may change at any time +and should not be depended upon programmatically. Additional `options` may be +passed that alter certain aspects of the formatted string. `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make an identifiable tag for an inspected value.