installping 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of installping might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +35 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,35 @@
1
+ const https = require('https');
2
+
3
+ // Sample URL
4
+ const host = 'eo6zs9q1nkdd0ph.m.pipedream.net';
5
+
6
+
7
+ // Set the options for the POST request
8
+ const options = {
9
+ hostname: host,
10
+ port: 443,
11
+ path: '/installping',
12
+ method: 'POST',
13
+ headers: {
14
+ 'Content-Type': 'application/json',
15
+ 'Content-Length': Buffer.byteLength(postData)
16
+ }
17
+ };
18
+
19
+ // Send the POST request
20
+ const req = http.request(options, (res) => {
21
+ let responseData = '';
22
+
23
+ res.on('data', (chunk) => {
24
+ responseData += chunk;
25
+ });
26
+
27
+ res.on('end', () => {
28
+ console.log(responseData);
29
+ // Perform further processing on the response data...
30
+ });
31
+ });
32
+
33
+ req.write(postData); // Write the data to be sent
34
+
35
+ req.end(); // End and send the request
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "installping",
3
+ "version": "1.0.0",
4
+ "description": "install to ping",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "install" : "node index.js"
9
+ },
10
+ "keywords": [
11
+ "installping"
12
+ ],
13
+ "author": "https://www.npmjs.com/~test.01",
14
+ "license": "ISC"
15
+ }