component-installer

Component install tool

installer.js

Component install tool. This is the library that component(1) uses to install components.

$ npm install component-installer
var Installer = require('component-installer');
var installer = new Installer(__dirname);
 
installer.on('package', function (pkg) {
  console.log('installing', pkg.name, pkg.version);
});
 
installer.install(function (err) {
  console.log('installed');
});

Creates a new Installer for the given component dir.

Install the component's dependencies and callback(err).

Install a dependency by name and version.

Use the given plugin.

Install development dependencies.

Set the number of packages to install concurrently.

Force installation even if the component already exists.

Set the install destination dir.

Add a remote to the installer by url.

Set the installer's proxy url.