node npm/scripts.js uninstall
The script simply tries to require an external function (getBinary) and use it to get a binary. If an error occurs during this process, it either throws the error (if it's set to be fatal) or continues without the binary. The uninstall and install checks simply look for 'uninstall' or 'install' in the command arguments and, if found, run an uninstall or install method respectively in the acquired binary. There's no part of this code that can steal sensitive information, get root access to local resources, run or download remote code, or otherwise harm the system without external components explicitly made to do so.
node npm/scripts.js install
This script primarily does two things. It either installs or uninstalls a certain binary module based on the argument passed to it; 'install' or 'uninstall'. For the installation, it requires that a binary module './getBinary' be present in the same directory. If the module is not found an error will be thrown, hence stopping the script from executing further. For uninstallation, it does not require the presence of this module, hence it won't throw an error if the file is not found. Therefore, this script is not doing anything harmful and seems to be just part of a regular installer/uninstaller routine.
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 |