var npm = require('{%= name %}');
// easily install packages
npm.install('generate', function(err) {
if (err) return console.log(err);
});
// or remove outdated packages
npm.uninstall('yeoman', function(err) {
if (err) return console.log(err);
});
// or install only packages that don't already exist
npm.maybeInstall(['foo', 'bar'], function(err) {
if (err) return console.log(err);
});
{%= apidocs("index.js") %}
v1.0.0
- adds .global method, now used by the other methods
v0.1.1
- adds .maybeInstall method