npmin
A minimal implementation of `npm install` for programmatic use.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install npmin 
SYNC missed versions from official npm registry.

npmin NPM version NPM downloads Build Status

npmin skips modules that are already installed.

Install

$ npm install --save npmin

Usage

const npmin = require('npmin')

const options = {verbose: true}

npmin(['express', 'co'], options)
  .then(result => {
    console.log(result.express)
    //=> success: 0
    console.log(result.co)
    //=> failed: 1
  })

API

npmin(input, [options])

input

Type: array

A list of modules you wanna install.

options

Type: object

The options to run npm install with, support all npm install options.

License

MIT © EGOIST

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
  • xo latest
Dependents (2)

Copyright 2014 - 2017 © taobao.org |