// `depth` tells util.inspect() how many times to recurse while formatting the object, default is 2 console.dir(obj, { depth: 10 }) // ...or pass `null` to recurse indefinitely console.dir(obj, { depth: null })