jscoding
Version:
A envirement for coding and debugging javascript language.
20 lines (15 loc) • 381 B
JavaScript
import chalk from 'chalk'
const success = (tips = '', msg = '') => {
return console.log(`${ chalk.green(tips) } ${msg}`)
}
const error = (tips = '', msg = '') => {
return console.log(`${ chalk.red(tips) } ${msg}`)
}
const warn = (tips = '', msg = '') => {
return console.log(`${ chalk.yellow(tips) } ${msg}`)
}
export default {
success,
error,
warn,
};