node ./npm/uninstall.js
This script contains a JavaScript function named getBinary(). This function tries to require a JavaScript module './getBinary', execute the function returned by it and return its result. If the './getBinary' is not found or an error occurs, nothing happens due to the empty catch statement. In the second part of the code, the getBinary function is called and, if it returns a result (meaning the function from the module './getBinary' has been executed and returned a result, presumably a binary), an uninstall method on the returned binary is called. This code doesn't directly provide any harmful operations such as stealing sensitive information, gaining root access, or downloading and executing remote code. However, the safety of this script hinges on the content of the './getBinary' module and the returned binary object. If these contain unsafe operations, they could compromise the system. As per the content of the script provided, it is deemed safe.
node ./npm/install.js
The script simply imports a function named getBinary
from a local module, then calls the install()
method on the returned object. There is no evidence of malicious intent from this snippet alone. However, the final judgment would require reviewing the content of the getBinary
function and the install
method.
wasm-grate
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
binary-install | 1.1.0 | 4.78 kB | MIT | prod | 1 |