czcaoq
Last Updated: February 25, 2016
·
127
· victorbstan
F59bbb5527258c3fb5d82a5cb22050f1

Formatted Console Log in JavaScript / NodeJS

var util = require('util');

console.flog = function(data) {
    var options = {
        showHidden: false,
        depth: null,
        colors: true
    };
    return console.log(util.inspect(data, options));
};
Say Thanks
Respond