Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-install-modules

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-install-modules

install npm modules (dependencies and devDependencies) programmactically via child_process.exec

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

npm-install-modules

NPM version Downloads experimental ISC license

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.

See Also

License

ISC

Keywords

FAQs

Package last updated on 03 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc