glweems-prettylogs
Advanced tools
Comparing version 1.0.0 to 1.0.1
24
index.js
@@ -1,2 +0,2 @@ | ||
const base = "color: white; border-radius: 2px; padding: 2px; font-size: 11px;" | ||
const base = "color: white; border-radius: 2px; padding: 1.75px; font-size: 11px;" | ||
const success = "background: green;" | ||
@@ -6,12 +6,18 @@ const error = "background: red;" | ||
module.exports = { | ||
success: function (string) { | ||
return console.log("%c " + string + " ", base + success); | ||
const goodLog = { | ||
mounted() { | ||
console.log("%c " + string + " ", base + success); | ||
}, | ||
error: function (string) { | ||
return console.log("%c " + string + " ", base + error); | ||
} | ||
const badLog = { | ||
mounted() { | ||
console.log("%c " + string + " ", base + error); | ||
}, | ||
warning: function (string) { | ||
return console.log("%c " + string + " ", base + warning); | ||
} | ||
const warningLog = { | ||
mounted() { | ||
console.log("%c " + string + " ", base + warning); | ||
}, | ||
}; | ||
} | ||
export default { goodLog, badLog, warningLog } |
{ | ||
"name": "glweems-prettylogs", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
887
4
19
1
2