Site icon Brian Prom Blog

Node.JS – View contents of object in console

Use the NodeJS Utility Module to display the contents of an object in the console logs
Use the NodeJS Utility Module to display the contents of an object in the console logs

When using Node.JS and you need to write to your log files what the contents of an OBJECT is, simply do the following:

Simple as that!

The Utility module offers many other features, but that’s to be explored another day.

Exit mobile version