2023.06.22
This commit is contained in:
parent
0defd1949b
commit
da6997f0ab
2 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-cout",
|
"name": "node-cout",
|
||||||
"version": "2023.06.19-1",
|
"version": "2023.06.22",
|
||||||
"description": "Standard output module for JavaScript / TypeScript",
|
"description": "Standard output module for JavaScript / TypeScript",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
|
|
@ -23,6 +23,10 @@ export class cout {
|
||||||
let time = `${getTime().hours}:${getTime().minutes}:${getTime().seconds}`;
|
let time = `${getTime().hours}:${getTime().minutes}:${getTime().seconds}`;
|
||||||
type = type.toUpperCase();
|
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;
|
let timec = chalk.blue(time), stringc: string = " ", typec: string, emoji: string, emojic: string;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -43,8 +47,8 @@ export class cout {
|
||||||
stringc = chalk.cyan(string);
|
stringc = chalk.cyan(string);
|
||||||
type = " " + type;
|
type = " " + type;
|
||||||
typec = chalk.cyan(type);
|
typec = chalk.cyan(type);
|
||||||
emoji = " ℹ️ ";
|
emoji = "ℹ️ ";
|
||||||
emojic = " ℹ️ ";
|
emojic = "ℹ️ ";
|
||||||
break;
|
break;
|
||||||
case "WARN":
|
case "WARN":
|
||||||
stringc = chalk.yellow(string);
|
stringc = chalk.yellow(string);
|
||||||
|
|
Loading…
Reference in a new issue