apius 0.0.5 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -4
- package/index.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
5
|
-
>
|
5
|
+
> npm i apius
|
6
6
|
|
7
7
|
## Introduction
|
8
8
|
|
@@ -14,11 +14,11 @@
|
|
14
14
|
import apius from 'apius'
|
15
15
|
|
16
16
|
// - You can send colored log message!
|
17
|
-
apius.log("
|
17
|
+
apius.log("Hello world!", "color") // its can be bold. apius.log("hello world!", "color", true)
|
18
18
|
|
19
19
|
// - And you can use RGB codes!
|
20
|
-
apius.logRGB("
|
20
|
+
apius.logRGB("Hello world!", [rgb code]) // its can be bold. apius.log("hello world!", [rgb code], true)
|
21
21
|
|
22
22
|
// - Also you can use hex codes!
|
23
|
-
apius.logHex("
|
23
|
+
apius.logHex("Hello world!", "hex code") // its can be bold. apius.logHex("hello world!", "hex code", true)
|
24
24
|
```
|
package/index.js
CHANGED
@@ -24,5 +24,13 @@ export default {
|
|
24
24
|
} else if(bold == true) {
|
25
25
|
return console.log(chalk.hex(hexCode).bold(str))
|
26
26
|
}
|
27
|
+
},
|
28
|
+
|
29
|
+
randomNumberGenerator: (min = 0, max = 100) => {
|
30
|
+
return Math.round(Math.random() * (max - min) + min)
|
31
|
+
},
|
32
|
+
|
33
|
+
randomArray: (arr) => {
|
34
|
+
return Math.floor(Math.random() * arr.length)
|
27
35
|
}
|
28
36
|
}
|