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);