package
Install dependencies using Yarn with npm fallback.
npm install install-packagesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Programmatically install npm packages.
This is used by webpack-proxy, here's a preview:
yarn add install-packagesconst install = require('install-packages')
install({
packages: ['webpack', 'mocha']
})
//=> PromiseType: 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-featureEstimated unpacked size across 17 packages.
423.1 kB
Includes dependencies.
6 direct · 4 outdated
^2.3.2
6.0.1
^2.1.1
3.1.1
^1.7.1
1.22.14
^4.0.2
7.0.6
^1.2.6
1.2.9
^0.1.0
1.0.0