projek2 / lib /color.js
devstok's picture
Upload folder using huggingface_hub
6f55a1e verified
raw
history blame contribute delete
283 Bytes
const chalk = require('chalk')
const color = (text, color) => {
return !color ? chalk.green(text) : chalk.keyword(color)(text)
}
const bgcolor = (text, bgcolor) => {
return !bgcolor ? chalk.green(text) : chalk.bgKeyword(bgcolor)(text)
}
module.exports = {
color,
bgcolor
}