/install-package

Install node modules from JavaScript.

Primary LanguageJavaScript

install-package

Install node modules from JavaScript.

Build Status

Install

npm install install-package

Usage

const install = require('install-package');

install('co', '--save').then(result => {
  console.log(result.stdout);
  console.log(result.stderr);
});

API

install(packages, [options], [execOptions])

packages

Type: String, Array<String>

options

Type: String, Array<String>, Object

execOptions

Type: Object

License

MIT: http://1000ch.mit-license.org