apius 0.0.8 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
@@ -17,12 +17,12 @@ export default {
|
|
17
17
|
}
|
18
18
|
},
|
19
19
|
|
20
|
-
|
20
|
+
hex: (str, hexCode, bold = false) => {
|
21
21
|
if(bold == false) {
|
22
22
|
const requestHex = chalk.hex(hexCode)
|
23
|
-
return
|
23
|
+
return requestHex(str)
|
24
24
|
} else if(bold == true) {
|
25
|
-
return
|
25
|
+
return chalk.hex(hexCode).bold(str)
|
26
26
|
}
|
27
27
|
},
|
28
28
|
|
@@ -31,6 +31,6 @@ export default {
|
|
31
31
|
},
|
32
32
|
|
33
33
|
randomArray: (arr) => {
|
34
|
-
return Math.floor(Math.random() * arr.length)
|
34
|
+
return arr[Math.floor(Math.random() * arr.length)]
|
35
35
|
}
|
36
36
|
}
|