0.4.0 • Published 10 years ago

desires v0.4.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

desires

desires functions exactly like require, with a twist: it synchronously grabs missing modules from npm. Saves to package.json by default.

Installation

$ npm install desires

Examples

// 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() });

API

desires(name, options)

The one and only function call.

options

  • save (defaults to true)
  • saveDev
  • global
  • dir

License

MIT

0.4.0

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago