Socket
Book a DemoInstallSign in
Socket

component-installer

Package Overview
Dependencies
Maintainers
13
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-installer

Component install tool

latest
Source
npmnpm
Version
0.0.8
Version published
Weekly downloads
173
121.79%
Maintainers
13
Weekly downloads
 
Created
Source

installer.js

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

Installation

$ npm install component-installer

Example

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');
});

API

new Installer(dir)

Creates a new Installer for the given component dir.

Installer#install(callback)

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

Installer#installPackage(name, version)

Install a dependency by name and version.

Installer#use(plugin)

Use the given plugin.

Installer#development()

Install development dependencies.

Installer#concurrency(number)

Set the number of packages to install concurrently.

Installer#force()

Force installation even if the component already exists.

Installer#destination(dir)

Set the install destination dir.

Installer#remote(url)

Add a remote to the installer by url.

Installer#proxy(url)

Set the installer's proxy url.

Keywords

component

FAQs

Package last updated on 28 Apr 2014

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