If I have a foo.js node script, is there a way for me to automatically install all the npm dependencies?
e.g. If foo.js had this:
var program = require('commander');
var cheerio = require('cheerio');
Is there any npm command or something that I could do that would read foo.js and do 'npm install commander;npm install cheerio'?