@kitql/helper
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,1 @@ | ||
export { type Logger } from 'pino'; | ||
export { Log, logCyan, logGreen, logRed } from './Log'; |
@@ -12,2 +12,5 @@ 'use strict'; | ||
} | ||
function logMagneta(str) { | ||
return `\x1b[35m${str}\x1b[37m\x1b[0m`; | ||
} | ||
function logRed(str) { | ||
@@ -32,6 +35,6 @@ return `\u001B[31m${str}\x1b[37m\x1b[0m`; | ||
info(msg) { | ||
this.logger.info(`[${this.toolName}] - ${msg}`); | ||
this.logger.info(`${logMagneta(`[${this.toolName}]`)} - ${msg}`); | ||
} | ||
error(msg) { | ||
this.logger.error(`[${this.toolName}] - ${msg}`); | ||
this.logger.error(`${logMagneta(`[${this.toolName}]`)} - ${msg}`); | ||
} | ||
@@ -38,0 +41,0 @@ } |
export declare function logGreen(str: any): string; | ||
export declare function logMagneta(str: any): string; | ||
export declare function logRed(str: any): string; | ||
@@ -3,0 +4,0 @@ export declare function logCyan(str: any): string; |
{ | ||
"name": "@kitql/helper", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "pino": "7.6.5", |
Sorry, the diff of this file is not supported yet
3015
84