Skip to content

Commit

Permalink
Add %O formatter to reflect Chrome's console.log capability
Browse files Browse the repository at this point in the history
refs #278
  • Loading branch information
Thomas Parisot committed May 10, 2016
1 parent 39ecd87 commit 7748e50
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 7748e50

Please sign in to comment.