Skip to content

Commit

Permalink
Merge pull request #279 from oncletom/patch-1
Browse files Browse the repository at this point in the history
Add %O formatter to reflect Chrome's console.log capability
  • Loading branch information
TooTallNate authored Oct 22, 2016
2 parents 39ecd87 + 7748e50 commit 3c0f3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, ' ');
};
Expand Down

0 comments on commit 3c0f3da

Please sign in to comment.