npm-install-group
Dependency grouping for
npm-install
Install
npm install --only=production --save @ahmadnassri/npm-install-group
package.json
{
"dependencies": {
"abc": "1.2"
},
"devDependencies": {},
"fooDependencies": {
"a": "*",
"b": "*"
}
}
CLI
$ npm-install-group dev
$ npm-install-group foo --ignore-scripts
API
use as a module
packages(cwd, group)
const packages = require('@ahmadnassri/npm-install-group')
packages(process.cwd(), 'foo')
returns
[
"package-a@^1.3",
"package-b@^2.0",
"package-b@^0"
]
TODO
- [ ] stream
stdout
©️ ahmadnassri.com · License: ISC · Github: @ahmadnassri · Twitter: @ahmadnassri