blob: ee6d5845b27a14191305299a3d00462a94f698e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import chalk from "chalk";
import ora from "ora";
import gradient from "gradient-string";
const BLUE = "#0099F7";
const RED = "#F11712";
const YELLOW = "#FFFF00";
export const turboGradient = gradient(BLUE, RED);
export const turboBlue = chalk.hex(BLUE);
export const turboRed = chalk.hex(RED);
export const yellow = chalk.hex(YELLOW);
export const turboLoader = (text: string) =>
ora({
text,
spinner: {
frames: [" ", turboBlue("> "), turboBlue(">> "), turboBlue(">>>")],
},
});
export const info = (...args: any[]) => {
console.log(turboBlue.bold(">>>"), ...args);
};
export const error = (...args: any[]) => {
console.error(turboRed.bold(">>>"), ...args);
};
export const warn = (...args: any[]) => {
console.error(yellow.bold(">>>"), ...args);
};
|