install-package

Install node modules from JavaScript.

Usage no npm install needed!

<script type="module">
  import installPackage from 'https://cdn.skypack.dev/install-package';
</script>

README

install-package test

Install node modules from JavaScript.

Install

npm install install-package

Usage

import install from 'install-package';

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

API

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

packages

Type: String, Array<String>

args

Type: String, Array<String>, Object

options

Type: Object

License

MIT © Shogo Sensui