May 14, 2016

How to log a object in NodeJS

%j converts object to JSON.
console.log("%j", object);

No comments:

Post a Comment