UNPKG

boi-kernel

Version:
30 lines (23 loc) 436 B
'use strict'; 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 };