installify

A browserify transform that automatically installs missing dependencies

installify

A browserify transform for the lazy JavaScripter: installify automatically installs missing dependencies when bundling for quick and dirty prototyping.

npm install -g installify

Just include -t installify when using browserify from the command-line:

browserify -t installify index.js

If you want a really quick project, you should install beefy. Then starting a new project is as simple as:

npm init
touch index.js
beefy index.js -- -t installify
  --save, -S       save installs as a dependency
  --save-dev, -D   save installs as a devDependency

You can use the subarg syntax for CLI options, like this:

beefy index.js -- -t [ installify --save ]

Enjoy!