require-stars

<a href="http://travis-ci.org/rolandpoulter/node-require-stars"><img src="https://secure.travis-ci.org/rolandpoulter/node-require-stars.png" /></a>

Requires entire directories with one call to require.

npm install require-stars
npm test

Require shallow directory

require('require-stars')();

requrie('./myDir/*');

Require recursivley:

require('./myDir/**');

Enumerate directory exports:

var list = [],
    flat = {};

require('require-stars/enum')(require('./myDir/**'), function (exports, name, path, obj) {
	list.push(exports);
	flat[path] = exports;
}, this);