console.log printing only [object Object] code example Example: console.log printing object object require('util').inspect.defaultOptions.depth = null