node-persistent-software
Advanced tools
+1
-1
| { | ||
| "name": "node-persistent-software", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Spawn a software and keep it running", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
+2
-2
@@ -72,3 +72,3 @@ # node-persistent-software | ||
| }).on("end", () => { | ||
| console.log("/!\ Firefox is stopped and cannot be restarted /!\"); | ||
| console.log("/!\\ Firefox is stopped and cannot be restarted /!\\"); | ||
| }).start(); | ||
@@ -97,3 +97,3 @@ | ||
| }).on("end", () => { | ||
| console.log("/!\ Firefox is stopped and cannot be restarted /!\"); | ||
| console.log("/!\\ Firefox is stopped and cannot be restarted /!\\"); | ||
| }).start(); | ||
@@ -100,0 +100,0 @@ ``` |
+43
-0
@@ -142,2 +142,45 @@ | ||
| /* | ||
| // personnal check with firefox on Windows, based on the documentation | ||
| it("should check normal running with infinite and end", () => { | ||
| return new Promise(() => { | ||
| var ps = new PersistantSoftware( | ||
| "C:\\Program Files\\Mozilla Firefox\\firefox.exe", | ||
| [ "https://www.npmjs.com/package/node-persistent-software" ] | ||
| ).on("error", (msg) => { | ||
| (1, console).log(msg); | ||
| }) | ||
| .infinite() | ||
| .on("firststart", () => { | ||
| (1, console).log("Firefox is started for the first time !"); | ||
| }).on("restart", () => { | ||
| (1, console).log("Firefox is started again..."); | ||
| }).on("start", () => { | ||
| (1, console).log("anyway, Firefox is started."); | ||
| }) | ||
| .on("stop", () => { | ||
| (1, console).log("Firefox is stopped, trying to restart..."); | ||
| if (1 <= ps.successCountRun) { | ||
| ps.end(); | ||
| } | ||
| }).on("end", () => { | ||
| (1, console).log("/!\\ Firefox is stopped and cannot be restarted /!\\"); | ||
| }).start(); | ||
| }); | ||
| }).timeout(1 * 1000); | ||
| */ | ||
| }); |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
12620
8.77%248
13.24%2
100%