I don't know shite about:
Pretty print object in node
Use console.dir to log all properties of an object
If I simply log a node object with console.log
, it's nested content quickly gets displayed as [Object]
or something similar.
In order to see the full content you can use console.dir(obj, {depth: 10})
where depth
describes how many hierarchy levels should be printed.