improve cli
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import Colors from "colors";
|
||||
|
||||
export function guardStringNotEmpty(
|
||||
data: any,
|
||||
cb: (data: string) => void
|
||||
@@ -5,3 +7,7 @@ export function guardStringNotEmpty(
|
||||
if (typeof data != "string" || data == "") return;
|
||||
cb(data);
|
||||
}
|
||||
|
||||
export function writeStat(label: string, value: number) {
|
||||
console.log(Colors.bold.blue(value.toString().padStart(9, " ")), label);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user