UNPKG

528 BJavaScriptView Raw
1'use strict';
2const chalk = require('chalk');
3
4module.exports = {
5 error:(...arg)=>{
6 arg.unshift('✘');
7 console.log(chalk.red.apply(null,arg));
8 },
9 warn:(...arg)=>{
10 arg.unshift('!');
11 console.log(chalk.magenta.apply(null,arg));
12 },
13 success:(...arg)=>{
14 console.log(chalk.green('✔'),chalk.gray(arg));
15 },
16 gray:(...arg)=>{
17 console.log(chalk.gray.apply(null,arg));
18 },
19 highlight:(...arg)=>{
20 console.log(chalk.yellow.apply(null,arg));
21 }
22}
\No newline at end of file