node ./npm/uninstall.js
This script attempts to import a 'getBinary' function from another module/file. Then, it tries to run this function and stores the result in 'binary' variable. Afterwards, if 'binary' exists (i.e., 'getBinary' did not throw an error and returned something truthy), it calls the 'uninstall' method on 'binary'. This script is safe, assuming that the implementation of 'getBinary' and 'binary.uninstall' methods are also safe and do not contain any harmful code or security vulnerabilities.
node ./npm/install.js
This code is a simple node.js script that requires the getBinary module (which is presumably located in the same directory as this file), and then calls the install method of the object that gets returned. Without further context, there's no way to determine whether the install method causes any dangerous side-effects. But based solely on this code snippet, there are no obvious security vulnerabilities.
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 |