npm-install-modules
v0.1.3
Published
install npm modules (dependencies and devDependencies) programmactically via child_process.exec
Downloads
1
Maintainers
Readme
npm-install-modules
Install npm modules (dependencies and devDependencies) programmatically.
Still quite raw as an individual module. Needs more testing in the wild (production use) to flesh out use-case development. Comments/PR's welcomed.
Installation
$ npm install npm-install-modules
Usage
var installModules = require('npm-install-modules')
var opts {
dependencies: ["mout", "clockin", "colorz"],
devDependencies: ["tape", "mocha"]
}
installModules(opts, function () {
// do something here
})
results in package.json...
"dependencies": {
"clockin": "^0.1.1",
"colorz": "^0.1.4",
"mout": "^0.11.0"
},
"devDependencies": {
"mocha": "^2.2.5",
"tape": "^4.0.1"
},
Why?
Building a scaffolder. Extracted this module from npinit. Figured it would be useful as a stand-alone.