Giter VIP home page Giter VIP logo

installer.js's Introduction

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.

installer.js's People

Contributors

ianstormtaylor avatar tj avatar yields avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.