oberknecht-utils
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -14,5 +14,5 @@ function date_() { return new Date(new Date().setMinutes(new Date().getMinutes() - new Date().getTimezoneOffset())).toISOString().split("Z")[0].replace("T", " ") }; | ||
const casecolors = { "fg": { "0": "", "1": "30", "2": "41" }, "bg": { "0": "", "1": "43", "2": "41" } }; | ||
logcolorfg = (`\x1b[${(((logcolorfg ?? 0) == 0 ? (casecolors.fg[(logopt ?? 0)]) : (logcolors[logcolorfg] ? logcolors[logcolorfg] : logcolorfg ?? casecolors.fg[(logopt ?? 0)])))}m`); | ||
logcolorbg = (`\x1b[${(((logcolorbg ?? 0) == 0 ? (casecolors.bg[(logopt ?? 0)]) : (logcolors[logcolorbg] ? logcolors[logcolorbg] : logcolorbg ?? casecolors[(logopt ?? 0)])))}m`); | ||
const logm = [`${logcolorbg}${logcolorfg} ${date_()} \x1b[0m >`, (logmsg.error?.message ?? logmsg.error ?? logmsg?.message ?? logmsg)]; | ||
logcolorfg = (`\x1b[${(((logcolorfg ?? 0) === 0 ? (casecolors.fg[(logopt ?? 0)]) : (logcolors[logcolorfg] ? logcolors[logcolorfg] : logcolorfg ?? casecolors.fg[(logopt ?? 0)])))}m`); | ||
logcolorbg = (`\x1b[${(((logcolorbg ?? 0) === 0 ? (casecolors.bg[(logopt ?? 0)]) : (logcolors[logcolorbg] ? logcolors[logcolorbg] : logcolorbg ?? casecolors[(logopt ?? 0)])))}m`); | ||
const logm = [`${logcolorbg}${logcolorfg} ${date_()} \x1b[0m >`, (logmsg?.error?.message ?? logmsg?.error ?? logmsg?.message ?? logmsg)]; | ||
switch (logopt) { default: case 0: return console.log(...logm); case 1: return console.info(...logm); case 2: return console.error(...logm); }; | ||
@@ -19,0 +19,0 @@ }; |
{ | ||
"name": "oberknecht-utils", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Utils for oberknecht packages", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/jubewe/oberknecht-utils.git" | ||
"url": "git+https://github.com/oberknechte/oberknecht-utils.git" | ||
}, | ||
@@ -20,5 +20,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/jubewe/oberknecht-utils/issues" | ||
"url": "https://github.com/oberknechte/oberknecht-utils/issues" | ||
}, | ||
"homepage": "https://github.com/jubewe/oberknecht-utils#readme" | ||
"homepage": "https://github.com/oberknechte/oberknecht-utils#readme" | ||
} |
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
39722