system-installer
=======
Install

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
```sh npm install system-installer ```Usage
Node
```js 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. - 'yourpackagemanager install' if no package manager is found. Throws ifprocess.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
// returns installation output
console.log(data);
})
.catch(function(err) {
console.log(err);
});
```
CLI
```sh $ npm i -g system-installer $ system-installer brew install ```Supported package managers
FreeBSD
Linux
- apt-get - Debian, Ubuntu
- dnf - fedora
- emerge - Gentoo
- nix - NixOS
- pacman - ArchLinux
- yum - fedora
- zypper - OpenSUSE
- chromebrew - Chrome OS