From da6997f0ab1d741e0c2169f3b9c916df8f6ca86a Mon Sep 17 00:00:00 2001 From: killerboss Date: Thu, 22 Jun 2023 17:48:01 +0200 Subject: [PATCH] 2023.06.22 --- package.json | 2 +- src/index.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0e84001..157d059 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-cout", - "version": "2023.06.19-1", + "version": "2023.06.22", "description": "Standard output module for JavaScript / TypeScript", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 891a16e..8005307 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,10 @@ export class cout { let time = `${getTime().hours}:${getTime().minutes}:${getTime().seconds}`; type = type.toUpperCase(); + if (getTime().hours < 10) time += " "; + if (getTime().minutes < 10) time += " "; + if (getTime().seconds < 10) time += " "; + let timec = chalk.blue(time), stringc: string = " ", typec: string, emoji: string, emojic: string; switch (type) { @@ -43,8 +47,8 @@ export class cout { stringc = chalk.cyan(string); type = " " + type; typec = chalk.cyan(type); - emoji = " ℹ️ "; - emojic = " ℹ️ "; + emoji = "ℹ️ "; + emojic = "ℹ️ "; break; case "WARN": stringc = chalk.yellow(string);