$ cnpm install install-packages
Programmatically install npm packages.
This is used by webpack-proxy, here's a preview:
yarn add install-packages
const install = require('install-packages')
install({
packages: ['webpack', 'mocha']
})
//=> Promise
Type: string[]
You can omit this to install dependencies from package.json.
Type: string
Default: process.cwd()
The directory to install packages.
Type: boolean
Default: true
Install peer dependencies for corresponding dependency.
Type: (name: string, version: string) => boolean
A function to filter peerDependencies, return true to install it, false otherwise.
Type: boolean
Default: false
Install as dev dependencies.
Type: string
Possible values: npm yarn
By default we automatically detect package manager.
Determine package manager for specifc directory.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureCopyright 2013 - present © cnpmjs.org | Home |