Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

system-installer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-installer

Get the install command for the system package manager or auto install the package

  • 1.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
139
decreased by-30.5%
Maintainers
1
Weekly downloads
 
Created
Source

system-installer

NPM

Dependencies Status Node.js CI codecov Maintainability Release

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.

Install

npm install system-installer

Usage

Node

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`);

Install vim package onto host, using system's default package manager

  • Returns a Promise
const sysInstaller = require('system-installer').installer;
sysInstaller('vim')
.then(function(data){
    // returns installation output
    console.log(data);
})
.catch(function(err) {
    console.log(err);
});

CLI

$ npm i -g system-installer
$ system-installer
brew install

Supported package managers

FreeBSD

Linux

OS X

Solaris

Windows

Keywords

FAQs

Package last updated on 22 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc