prettyPrint = function (contents) {
        [].concat(contents).forEach(function (content) {
            console.log(typeof content === 'string'
                ? content
                : objToStr(content)
            );
        }); 
    }
Pretty print results/info/dictionary in the specified format param.
@param {Object|String|Array} contents Results to be printed, it can be
       either String or Object or an Array of results.