desires
functions exactly like require
, with a twist: it synchronously grabs
missing modules from npm. Saves to package.json by default.
$ npm install desires
// The plain vanilla
var handlebars = desires("handlebars");
// The save-dev version
var handlebars = desires("handlebars", { saveDev : true });
// Using another directory
var handlebars = desires("handlebars", { dir : process.cwd() });
The one and only function call.
- save (defaults to true)
- saveDev
- global
- dir
MIT