number-api 0.1.0

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/README.md ADDED
@@ -0,0 +1 @@
1
+ An NumberAPI That Randomizes The Number.
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ // NumberAPI Library
2
+ class NumberAPI {
3
+ constructor() {
4
+ this.min = 1;
5
+ this.max = 100;
6
+ }
7
+
8
+ randomize() {
9
+ return Math.floor(Math.random() * (this.max - this.min + 1)) + this.min;
10
+ }
11
+
12
+ getRandomNumber() {
13
+ return this.randomize();
14
+ }
15
+ }
16
+
17
+ module.exports = new NumberAPI();
18
+
Binary file
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "number-api",
3
+ "version": "0.1.0",
4
+ "description": "An NumberAPI That Randomize The Numbers.",
5
+ "keywords": [
6
+ "number",
7
+ "api"
8
+ ],
9
+ "license": "ISC",
10
+ "author": "cosmic01727",
11
+ "type": "commonjs",
12
+ "main": "index.js",
13
+ "scripts": {
14
+ "test": "npm install numberapi"
15
+ }
16
+ }