console-hue
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,2 +0,1 @@ | ||
const {log} = require('console') | ||
const exportFns = {} | ||
@@ -7,5 +6,5 @@ const getColorMsg = require('./colormsg.js') | ||
function logMsg (type) { | ||
return function (msg, original) { | ||
log(getColorMsg(type, msg, original)) | ||
} | ||
return function (msg, original) { | ||
console.log(getColorMsg(type, msg, original)) | ||
} | ||
} | ||
@@ -12,0 +11,0 @@ |
{ | ||
"name": "console-hue", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Description ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,7 +51,7 @@ # console-hue | ||
> const consoleh = require('console-hue') | ||
// With default Stringify behaviour | ||
> consoleh.log({fn: function(msg) {console.log(msg)}}) | ||
// With default Stringigy behaviour | ||
consoleh.log({fn: function(msg) {console.log(msg)}}) | ||
{} | ||
// Getting the original msg without Stringify | ||
> consoleh.log({fn: function(msg) {console.log(msg)}}, true) | ||
// Getting the original msg without Stringigy | ||
consoleh.log({fn: function(msg) {console.log(msg)}}, true) | ||
[object Object] | ||
@@ -58,0 +58,0 @@ |
5178
64