New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

system-install

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-install

Get the install command for the system package manager

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
13
18.18%
Maintainers
1
Weekly downloads
 
Created
Source

npm version Build Status

system-install

Get the install command for the system packaging manager, e.g. sudo apt-get install for Debian-based systems.

system-install 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-install

Usage

Node

const mngr = require('system-install')();
/* - 'brew install' on OS X if homebrew is installed.
 * - 'sudo apt-get install' on debian 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: ${mngr} pandoc`);

CLI

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

Supported package managers

FreeBSD

  • pkg
  • pkg_add

Linux

OS X

Solaris

Windows

Keywords

apt-get

FAQs

Package last updated on 05 Oct 2017

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