UNPKG
zimbot-v4
Version:
latest (4.0.1)
4.0.1
4.0.0
Multi device wa bot created by Zim Bot Inc.
github.com/zim-bot/zimbot-v4
zim-bot/zimbot-v4
zimbot-v4
/
lib
/
color.js
16 lines
(11 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 }