Is it possible to print an objects contents e.g. methods and attributes in Node.js?
At the moment I\'m trying to print the session object and get the following:
This will for most of the objects for outputting in nodejs console
var util = require('util') function print (data){ console.log(util.inspect(data,true,12,true)) } print({name : "Your name" ,age : "Your age"})