boi-kernel
Version:
kernel features of boi
30 lines (23 loc) • 436 B
JavaScript
;
const Ora = require('ora');
const Chalk = require('chalk');
function info(msg) {
/* eslint-disable */
console.log(Chalk.cyan.bold('==> ' + msg));
/* eslint-enable */
}
function succeed(msg) {
Ora().succeed(Chalk.cyan.bold(msg));
}
function error(msg) {
Ora().fail(Chalk.red.bold(msg));
}
function warn(msg) {
Ora().warn(Chalk.yellow.bold(msg));
}
module.exports = {
info,
error,
warn,
succeed
};