apius 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +11 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -7,11 +7,22 @@ export default {
|
|
7
7
|
console.log(chalk[color].bold(str))
|
8
8
|
}
|
9
9
|
},
|
10
|
+
|
10
11
|
logRGB: (str, rgb, bold = false) => {
|
11
12
|
if(bold == false) {
|
13
|
+
const x = chalk.rgb
|
12
14
|
console.log(chalk.rgb(rgb)(str))
|
13
15
|
} else if(bold == true) {
|
14
16
|
console.log(chalk.rgb(rgb).bold(str))
|
15
17
|
}
|
18
|
+
},
|
19
|
+
|
20
|
+
logHex: (str, hexCode, bold = false) => {
|
21
|
+
if(bold == false) {
|
22
|
+
const y = chalk.hex(hexCode)
|
23
|
+
console.log(y(str))
|
24
|
+
} else if(bold == true) {
|
25
|
+
console.log(chalk.hex(hexCode).bold(str))
|
26
|
+
}
|
16
27
|
}
|
17
28
|
}
|