Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
system-installer
Advanced tools
Get the install command for the system package manager or auto install the package
Get the install command or install a package using the system packaging manager, e.g.
sudo apt-get install
for Debian-based systems.
This package has been replaced with node-sys.
system-installer
will try to find which system packaging is installed for the given process.platform
. If no system package manager is found, 'your_package_manager install'
is returned.
npm install system-installer
const sysInstaller = require('system-installer').packager();
/* - 'brew install' on OS X if homebrew is installed.
* - 'sudo apt-get install' on debian platforms.
* - 'sudo yum install' on red hat platforms.
* - 'your_package_manager install' if no package manager is found.
*
* Throws if `process.platform` is none of darwin, freebsd, linux, sunos or win32.
*/
console.log(`Please install pandoc: ${sysInstaller.installerCommand} pandoc`);
vim
package onto host, using system's default package managerconst sysInstaller = require('system-installer').installer;
sysInstaller('vim')
.then(function(data){
// returns installation output
console.log(data);
})
.catch(function(err) {
console.log(err);
});
$ npm i -g system-installer
$ system-installer
brew install
FAQs
Get the install command for the system package manager or auto install the package
The npm package system-installer receives a total of 138 weekly downloads. As such, system-installer popularity was classified as not popular.
We found that system-installer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.