1.0.0 • Published 7 years ago

@ahmadnassri/npm-install-group v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

npm-install-group version License

Dependency grouping for npm-install

Build Status Downloads Code Climate Coverage Status Dependency Status Dependencies

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

:copyright: ahmadnassri.com  ·  License: ISC  ·  Github: @ahmadnassri  ·  Twitter: @ahmadnassri