JSPM

npminstall

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18512
  • Score
    100M100P100Q139842F
  • License MIT

Let npm install fast and easy

Package Exports

  • npminstall
  • npminstall/bin/install
  • npminstall/bin/install.js
  • npminstall/lib/utils
  • npminstall/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npminstall) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npminstall

NPM version build status appveyor build status Test coverage David deps npm download

Let npm install fast and easy.

Installation

$ npm install npminstall --save

Quick start

const co = require('co');
const npminstall = require('npminstall');

co(function*() {
  yield npminstall({
    // install root dir
    root: process.cwd(),
    // optional packages need to install, default is package.json's dependencies and devDependencies
    // pkgs: [
    //   { name: 'foo', version: '~1.0.0' },
    // ],
    // registry, default is https://registry.npmjs.org
    // registry: 'https://registry.npmjs.org',
    // debug: false,
    // storeDir: root + '.npminstall',
  });
}).catch(function(err) {
  console.error(err.stack);
});

License

MIT