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) {
|
||||||
|
|
Loading…
Reference in a new issue