Warning: this module is currently in a dirty-hack stage.
Install all dependencies require'd within your JS code without needing a package.json. Intended for quick and dirty prototyping.
- Copy and paste code and run it (almost) immediately.
- Throw together scratch code without having to set up a package.json.
- Be lazy
npm install -g install-requires
Recursively walk through all dependencies in a js file and install any that are missing:
You can also include multiple js files:
install-requires mycode.js mycode2.js mycode3.js
- print the dependencies that are being installed
- option to
--save-devwhen a package.json exists:
- don't be a dirty hack