Merge pull request #279 from oncletom/patch-1

Add %O formatter to reflect Chrome's console.log capability
This commit is contained in:
Nathan Rajlich 2016-10-22 10:02:50 -07:00 committed by GitHub
commit 3c0f3da3b6

View File

@ -68,7 +68,7 @@ var inspect = (4 === util.inspect.length ?
}
);
exports.formatters.o = function(v) {
exports.formatters.o = exports.formatters.O = function(v) {
return inspect(v, this.useColors)
.replace(/\s*\n\s*/g, ' ');
};