Commit a7568fb3 by Jason Zhou

feat: add log util

parent 7662f88a
const chalk = require('chalk')
const titleColor = title => chalk.yellowBright(title)
const itemColor = item => chalk.green(item)
const title = title => {
console.log(titleColor(`${title}\n`))
}
const item = item => {
console.log(itemColor(` ${item}\n`))
}
module.exports = {
log: { title, item },
colors: {
title: titleColor,
item: itemColor
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment