glweems-prettylogs
Advanced tools
Comparing version 1.1.0 to 1.1.1
14
index.js
@@ -1,18 +0,18 @@ | ||
const base = "color: white; border-radius: 2px; padding: 1.75px; font-size: 11px;" | ||
const good = "background: green;" | ||
const error = "background: red;" | ||
const warning = "background: orange;" | ||
const baseStr = "color: white; border-radius: 2px; padding: 1.75px; font-size: 11px;" | ||
const goodStr = "background: green;" | ||
const errorStr = "background: red;" | ||
const warningStr = "background: orange;" | ||
export function success(string) { | ||
console.log("%c " + string + " ", base + good) | ||
console.log("%c " + string + " ", baseStr + goodStr) | ||
}; | ||
export function danger(string) { | ||
console.log("%c " + string + " ", base + error); | ||
console.log("%c " + string + " ", baseStr + errorStr); | ||
}; | ||
export function warning(string) { | ||
console.log("%c " + string + " ", base + warning); | ||
console.log("%c " + string + " ", baseStr + warningStr); | ||
}; | ||
export default { success, danger, warning } |
{ | ||
"name": "glweems-prettylogs", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1047