@eve-tools/cli
Version:
Everest cli to speed up project start-up and standardized frontend , backend architecture
39 lines (38 loc) • 985 B
JavaScript
import chalk from "chalk";
import ora from "ora";
export const errorColor = chalk.bold.red;
export const pendingColor = chalk.bold.blue;
export const figletColor = chalk.bold.cyanBright;
export const logger = {
info(text) {
console.log(chalk.bold.blue(text));
},
default(text) {
return console.log(text);
},
success(text) {
return console.log(chalk.bold.green(text));
},
error(text) {
return console.log(chalk.bold.red(text));
},
pending(text) {
console.log(chalk.bold.blue(text));
},
warning(text) {
console.log(chalk.bold.yellow(text));
},
custom(text, color) {
return chalk.bold[color](text);
},
figlet(text) {
console.log(chalk.bold.cyanBright(text));
},
ora(text) {
return {
pending: ora(chalk.bold.blue(text)),
fail: ora(chalk.bold.red(text)),
succeed: ora(chalk.bold.green(text)),
};
},
};